From 0ce57ab68eef5805cbfaf3d9312c855f47166f24 Mon Sep 17 00:00:00 2001 From: Matthias Alleman Date: Thu, 12 Jun 2025 12:09:11 +0200 Subject: [PATCH] modules: lvgl: fix of too few arguments of cpu_load_get Fixes building an lvgl sample with CONFIG_CPU_LOAD enabled. cpu_load_get function requires 1 argument. Signed-off-by: Matthias Alleman --- modules/lvgl/lvgl_zephyr_osal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lvgl/lvgl_zephyr_osal.c b/modules/lvgl/lvgl_zephyr_osal.c index a23f1a9b5bb..e66f4a385fc 100644 --- a/modules/lvgl/lvgl_zephyr_osal.c +++ b/modules/lvgl/lvgl_zephyr_osal.c @@ -161,7 +161,7 @@ void thread_entry(void *thread, void *cb, void *user_data) uint32_t lv_os_get_idle_percent(void) { #ifdef CONFIG_CPU_LOAD - int load = cpu_load_get(); + int load = cpu_load_get(true); if (load < 0) { LOG_ERR("Failed to get CPU load, returning UINT32_MAX");