Skip to content

Commit

Permalink
tests/kernel/early_sleep: Fix for fast ticks
Browse files Browse the repository at this point in the history
"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
Andy Ross authored and nashif committed Jul 3, 2019
1 parent fc392a2 commit 5238f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/kernel/early_sleep/src/main.c
Expand Up @@ -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);
Expand Down

0 comments on commit 5238f5b

Please sign in to comment.