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:
parent
3cb03efd9c
commit
2adccabf6a
1 changed files with 2 additions and 3 deletions
|
@ -29,8 +29,7 @@ void z_arm_exc_exit(void);
|
||||||
*/
|
*/
|
||||||
#define MIN_DELAY MAX(1024, (CYC_PER_TICK/16))
|
#define MIN_DELAY MAX(1024, (CYC_PER_TICK/16))
|
||||||
|
|
||||||
#define TICKLESS (IS_ENABLED(CONFIG_TICKLESS_KERNEL) && \
|
#define TICKLESS (IS_ENABLED(CONFIG_TICKLESS_KERNEL))
|
||||||
!IS_ENABLED(CONFIG_QEMU_TICKLESS_WORKAROUND))
|
|
||||||
|
|
||||||
/* VAL value above which we assume that a subsequent COUNTFLAG
|
/* VAL value above which we assume that a subsequent COUNTFLAG
|
||||||
* overflow seen in CTRL is real and not an artifact of wraparound
|
* 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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(CONFIG_TICKLESS_KERNEL) && !defined(CONFIG_QEMU_TICKLESS_WORKAROUND)
|
#if defined(CONFIG_TICKLESS_KERNEL)
|
||||||
u32_t delay;
|
u32_t delay;
|
||||||
|
|
||||||
ticks = MIN(MAX_TICKS, MAX(ticks - 1, 0));
|
ticks = MIN(MAX_TICKS, MAX(ticks - 1, 0));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue