timer: remove QEMU_TICKLESS_WORKAROUND

Qemu icount mode enabled, remove QEMU_TICKLESS_WORKAROUND.

Signed-off-by: Wentong Wu <wentong.wu@intel.com>
This commit is contained in:
Wentong Wu 2020-05-12 10:32:40 +08:00 committed by Carles Cufí
commit 72227574d8
15 changed files with 9 additions and 42 deletions

View file

@ -30,8 +30,7 @@ static void arm_arch_timer_compare_isr(void *arg)
last_cycle += delta_ticks * CYC_PER_TICK;
if (!IS_ENABLED(CONFIG_TICKLESS_KERNEL) ||
IS_ENABLED(CONFIG_QEMU_TICKLESS_WORKAROUND)) {
if (!IS_ENABLED(CONFIG_TICKLESS_KERNEL)) {
u64_t next_cycle = last_cycle + CYC_PER_TICK;
if ((s64_t)(next_cycle - curr_cycle) < MIN_DELAY) {
@ -62,7 +61,7 @@ void z_clock_set_timeout(s32_t ticks, bool idle)
{
ARG_UNUSED(idle);
#if defined(CONFIG_TICKLESS_KERNEL) && !defined(CONFIG_QEMU_TICKLESS_WORKAROUND)
#if defined(CONFIG_TICKLESS_KERNEL)
if (idle) {
return;