Skip to content

Commit d32b794

Browse files
ppelikan-nordicrlubos
authored andcommitted
[nrf fromtree] tests: kernel: sleep: Adjustments for NRF54H20 PPR
Adjusting the max shortest ticks value for slow PPR core. Signed-off-by: Paweł Pelikan <[email protected]> (cherry picked from commit 1192dbf)
1 parent d4bb1c6 commit d32b794

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/kernel/sleep/src/usleep.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@
4242
* loaded to its comparator.
4343
*/
4444
#define MAXIMUM_SHORTEST_TICKS 2
45+
#elif defined(CONFIG_SOC_NRF54H20_CPUPPR) && (CONFIG_SYS_CLOCK_TICKS_PER_SEC > 16384)
46+
/* Similar for nRF54H20 cpuppr (RISC-V core), it has a slow CPU clock
47+
* compared to other cores, causing the increased overhead.
48+
*/
49+
#define MAXIMUM_SHORTEST_TICKS 4
4550
#else
4651
#define MAXIMUM_SHORTEST_TICKS 1
4752
#endif

0 commit comments

Comments
 (0)