Skip to content
Commit 96a90550 authored by Kumar Gala's avatar Kumar Gala Committed by Kumar Gala
Browse files

kernel: idle: fix build error on arm-clang



When building sample.minimal.mt-no-preempt-no-timers.arm on arm-clang
we get a link error as z_pm_save_idle_exit expects sys_clock_idle_exit
to be defined.

However the sample sets CONFIG_SYS_CLOCK_EXISTS=n so
sys_clock_idle_exit() will not be defined by any driver.  So add proper
ifdef protection in z_pm_save_idle_exit to fix this.

Signed-off-by: default avatarKumar Gala <kumar.gala@intel.com>
parent f9fbd8a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment