timer: arm: Fix idle usage option

idle is only considered in other timer implementations if ticks ==
K_TICKS_FOREVER but in arm_arch_timer. Just fix it.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2020-12-21 12:27:30 -08:00 committed by Anas Nashif
commit 345849052a

View file

@ -66,7 +66,7 @@ void z_clock_set_timeout(int32_t ticks, bool idle)
#if defined(CONFIG_TICKLESS_KERNEL)
if (idle) {
if (ticks == K_TICKS_FOREVER && idle) {
return;
}