drivers: remove arm's qemu systick workaround

Removed workarounds in systick driver as they prevent normal usage in
TICKLESS systems. Driver still behaved like an interrupt based ticker.

Signed-off-by: Andrei Gansari <andrei.gansari@nxp.com>
This commit is contained in:
Andrei Gansari 2019-09-09 17:27:53 +03:00 committed by Anas Nashif
parent 3cb03efd9c
commit 2adccabf6a

View file

@ -29,8 +29,7 @@ void z_arm_exc_exit(void);
*/
#define MIN_DELAY MAX(1024, (CYC_PER_TICK/16))
#define TICKLESS (IS_ENABLED(CONFIG_TICKLESS_KERNEL) && \
!IS_ENABLED(CONFIG_QEMU_TICKLESS_WORKAROUND))
#define TICKLESS (IS_ENABLED(CONFIG_TICKLESS_KERNEL))
/* VAL value above which we assume that a subsequent COUNTFLAG
* overflow seen in CTRL is real and not an artifact of wraparound
@ -126,7 +125,7 @@ void z_clock_set_timeout(s32_t ticks, bool idle)
return;
}
#if defined(CONFIG_TICKLESS_KERNEL) && !defined(CONFIG_QEMU_TICKLESS_WORKAROUND)
#if defined(CONFIG_TICKLESS_KERNEL)
u32_t delay;
ticks = MIN(MAX_TICKS, MAX(ticks - 1, 0));