clock.h: use CONFIG_DEBUG_SCHED to test init ticks
Signed-off-by: zhanghu5 <zhanghu5@xiaomi.com>
This commit is contained in:
parent
eddd90de78
commit
6a6538c1b8
@ -205,7 +205,7 @@
|
|||||||
#define TICK2HSEC(tick) (((tick) + (TICK_PER_HSEC / 2)) / TICK_PER_HSEC)
|
#define TICK2HSEC(tick) (((tick) + (TICK_PER_HSEC / 2)) / TICK_PER_HSEC)
|
||||||
#define TICK2SEC(tick) (((tick) + (TICK_PER_SEC / 2)) / TICK_PER_SEC)
|
#define TICK2SEC(tick) (((tick) + (TICK_PER_SEC / 2)) / TICK_PER_SEC)
|
||||||
|
|
||||||
#if defined(CONFIG_DEBUG_FEATURES) && defined(CONFIG_SYSTEM_TIME64) && \
|
#if defined(CONFIG_DEBUG_SCHED) && defined(CONFIG_SYSTEM_TIME64) && \
|
||||||
!defined(CONFIG_SCHED_TICKLESS)
|
!defined(CONFIG_SCHED_TICKLESS)
|
||||||
/* Initial system timer ticks value close to maximum 32-bit value, to test
|
/* Initial system timer ticks value close to maximum 32-bit value, to test
|
||||||
* 64-bit system-timer after going over 32-bit value. This is to make errors
|
* 64-bit system-timer after going over 32-bit value. This is to make errors
|
||||||
|
Loading…
Reference in New Issue
Block a user