From 6a6538c1b817dc4b684c08d58b04562efd49c7e1 Mon Sep 17 00:00:00 2001 From: zhanghu5 Date: Mon, 20 Nov 2023 20:29:22 +0800 Subject: [PATCH] clock.h: use CONFIG_DEBUG_SCHED to test init ticks Signed-off-by: zhanghu5 --- include/nuttx/clock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nuttx/clock.h b/include/nuttx/clock.h index 655210a530..76ed107912 100644 --- a/include/nuttx/clock.h +++ b/include/nuttx/clock.h @@ -205,7 +205,7 @@ #define TICK2HSEC(tick) (((tick) + (TICK_PER_HSEC / 2)) / TICK_PER_HSEC) #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) /* 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