We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a973447 commit c590e76Copy full SHA for c590e76
tests/kernel/sched/schedule_api/src/test_sched_timeslice_reset.c
@@ -27,8 +27,8 @@ BUILD_ASSERT(NUM_THREAD <= MAX_NUM_THREAD);
27
/* ... will not take more than 1 ms. */
28
#define TASK_SWITCH_TOLERANCE (1)
29
#else
30
-/* ... 1ms is faster than a tick, loosen tolerance to 1 tick */
31
-#define TASK_SWITCH_TOLERANCE (1000 / CONFIG_SYS_CLOCK_TICKS_PER_SEC)
+/* ... 1ms is faster than a tick, loosen tolerance to just over 1 tick */
+#define TASK_SWITCH_TOLERANCE (1100 / CONFIG_SYS_CLOCK_TICKS_PER_SEC)
32
#endif
33
34
K_SEM_DEFINE(sema, 0, NUM_THREAD);
0 commit comments