timer: arm: idle is used when CONFIG_TICKLESS_KERNEL
Only mark idle parameter unused when building without TICKLESS_KERNEL enabled. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
345849052a
commit
cd0caced65
1 changed files with 2 additions and 2 deletions
|
@ -62,8 +62,6 @@ int z_clock_driver_init(const struct device *device)
|
|||
|
||||
void z_clock_set_timeout(int32_t ticks, bool idle)
|
||||
{
|
||||
ARG_UNUSED(idle);
|
||||
|
||||
#if defined(CONFIG_TICKLESS_KERNEL)
|
||||
|
||||
if (ticks == K_TICKS_FOREVER && idle) {
|
||||
|
@ -90,6 +88,8 @@ void z_clock_set_timeout(int32_t ticks, bool idle)
|
|||
arm_arch_timer_set_irq_mask(false);
|
||||
k_spin_unlock(&lock, key);
|
||||
|
||||
#else /* CONFIG_TICKLESS_KERNEL */
|
||||
ARG_UNUSED(idle);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue