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:
parent
762ff2f428
commit
3642f67b05
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue