From 5238f5b97e9a61d0d998367c69a7eddf68f65101 Mon Sep 17 00:00:00 2001 From: Andy Ross Date: Sat, 15 Jun 2019 20:54:16 -0700 Subject: [PATCH] tests/kernel/early_sleep: Fix for fast ticks "50" ticks is fine with 100 Hz timer precision but way too short to survive the conversion to milliseconds on fast, non-decimal tick rates. Make it half a second, which was the original intent. Signed-off-by: Andy Ross --- tests/kernel/early_sleep/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kernel/early_sleep/src/main.c b/tests/kernel/early_sleep/src/main.c index 7874ef7aeb9c45..20d3ea10312c7a 100644 --- a/tests/kernel/early_sleep/src/main.c +++ b/tests/kernel/early_sleep/src/main.c @@ -33,7 +33,7 @@ #define THREAD_STACK (384 + CONFIG_TEST_EXTRA_STACKSIZE) -#define TEST_TICKS_TO_SLEEP 50 +#define TEST_TICKS_TO_SLEEP (CONFIG_SYS_CLOCK_TICKS_PER_SEC / 2) /* Helper thread data */ static K_THREAD_STACK_DEFINE(helper_tstack, THREAD_STACK);