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:
committed by
GitHub
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)
|
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)
|
void my_profiler_init(void)
|
||||||
|
|||||||
Reference in New Issue
Block a user