Skip to content
Permalink
Browse files

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 <andrew.j.ross@intel.com>
  • Loading branch information...
andyross authored and nashif committed Jun 16, 2019
1 parent fc392a2 commit 5238f5b97e9a61d0d998367c69a7eddf68f65101
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit 5238f5b

Please sign in to comment.
You can’t perform that action at this time.