Skip to content

Commit 5a7f80f

Browse files
nordic-krchnashif
authored andcommitted
tests: kernel: usage: Relax timing requirements for RISCV
Test was previously relaxed for RISCV machine timer. I have a platform where it fails on RISCV requiring further relaxation. Relaxing precision for RISCV architecture. Signed-off-by: Krzysztof Chruscinski <[email protected]>
1 parent b0585be commit 5a7f80f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/kernel/usage/thread_runtime_stats/src/test_thread_runtime_stats.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
((((val1) * 100) < ((val2) * (100 + (pcnt)))) && \
1616
(((val1) * 100) > ((val2) * (100 - (pcnt))))) ? true : false
1717

18-
#if defined(CONFIG_RISCV_MACHINE_TIMER)
19-
#define IDLE_EVENT_STATS_PRECISION 5
18+
#if defined(CONFIG_RISCV)
19+
#define IDLE_EVENT_STATS_PRECISION 7
2020
#else
2121
#define IDLE_EVENT_STATS_PRECISION 1
2222
#endif

0 commit comments

Comments
 (0)