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:
parent
54ea01e019
commit
eecfc27361
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user