Skip to content
Permalink
Browse files

tests/kernel/tickless/tickless_concept: Force 100 Hz ticks

This test was written to assume ~100 Hz ticks in ways that are
difficult to fix.  It wants to sleep for periods on the order of the
TICKLESS_IDLE_THRESH kconfig, which is extremely small on high tick
rate systems and (on nRF in particular) does not have a cleanly
divisible representation in milliseconds.

Fixing precision issues by cranking the idle threshold up on a
per-system basis seems like an abuse, as that is what we want to be
testing in the first place.  Just let the test run at the tick rate it
has always expected.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
  • Loading branch information...
andyross authored and nashif committed Jun 16, 2019
1 parent b128010 commit fc392a2c75fc373c09ed7aef2307909743a13f56
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/kernel/tickless/tickless_concept/prj.conf
@@ -1,5 +1,5 @@
CONFIG_ZTEST=y
CONFIG_SYS_POWER_MANAGEMENT=y
CONFIG_TICKLESS_IDLE_THRESH=20

CONFIG_SMP=n
CONFIG_SYS_CLOCK_TICKS_PER_SEC=100

0 comments on commit fc392a2

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