1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

docs(profiler): fix my_get_cpu_cb implementation (#5641)

Signed-off-by: Hatim-Pierre FAZILEABASSE <hatim-pierre.fazileabasse@ingenico.com>
This commit is contained in:
Hatim-Pierre FAZILEABASSE 2024-02-12 20:56:51 +01:00 committed by GitHub
parent 54ea01e019
commit eecfc27361
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,7 +60,9 @@ To enable the profiler, set :c:macro:`LV_USE_PROFILER` in ``lv_conf.h`` and conf
static int my_get_cpu_cb(void)
{
return (int)syscall(SYS_getcpu);
int cpu_id = 0;
syscall(SYS_getcpu, &cpu_id, NULL);
return cpu_id;
}
void my_profiler_init(void)