drivers/timer/hpet: Fix logic for !TICKLESS

When tickless was disabled, this inverted test would never fire the
first interrupt and the timer would be silent.  Just remove it.
There's no harm in unconditionally enabling a single timer interrupt
at boot.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
Andy Ross 2018-12-08 18:54:29 -08:00 committed by Anas Nashif
commit 3642f67b05

View file

@ -93,11 +93,8 @@ int z_clock_driver_init(struct device *device)
last_count = MAIN_COUNTER_REG;
TIMER0_CONF_REG |= TCONF_INT_ENABLE;
TIMER0_COMPARATOR_REG = MAIN_COUNTER_REG + cyc_per_tick;
if (IS_ENABLED(CONFIG_TICKLESS_KERNEL) &&
!IS_ENABLED(CONFIG_QEMU_TICKLESS_WORKAROUND)) {
TIMER0_COMPARATOR_REG = MAIN_COUNTER_REG + cyc_per_tick;
}
return 0;
}