Skip to content

Commit 638983d

Browse files
committed
sample/zbus: qemu_nios2 needs faster tick for zbus test with picolibc
Picolibc is enough faster than the minimal C library that the zbus benchmark will likely complete in well under 10ms on qemu_nios2. As this target cannot provide a clock at higher resolution than the system tick, we need to increase that rate to get a non-zero runtime for this benchmark. Add new nios2-specific config variables that change the CONFIG_SYS_CLOCK_TICKS_PER_SEC value, leaving all other platforms using the standard value. We cannot just increase it for every platform as qemu_arc_hs6x fails with a 1kHz rate. Signed-off-by: Keith Packard <[email protected]>
1 parent 9d2fe69 commit 638983d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

samples/subsys/zbus/benchmark/sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ tests:
1919
- CONFIG_BM_ONE_TO=8
2020
- CONFIG_BM_MESSAGE_SIZE=256
2121
- CONFIG_BM_ASYNC=y
22+
- arch:nios2:CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
2223
sample.zbus.benchmark_sync:
2324
tags: zbus
2425
min_ram: 16
@@ -37,3 +38,4 @@ tests:
3738
- CONFIG_BM_ONE_TO=8
3839
- CONFIG_BM_MESSAGE_SIZE=256
3940
- CONFIG_BM_ASYNC=n
41+
- arch:nios2:CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

0 commit comments

Comments
 (0)