Skip to content

Commit 660e485

Browse files
committed
rtio: Fix for all POSIX arch platforms
The same k_busy_wait needed for native_posix is needed for all POSIX arch platforms. Also increase that busy wait a bit. There is no point of waiting for just 1 microsecond at a time, and waiting a bit longer speeds up the test. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent ee3d089 commit 660e485

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/zephyr/rtio/rtio.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -757,11 +757,11 @@ static inline int z_impl_rtio_submit(struct rtio *r, uint32_t wait_count)
757757
}
758758
#else
759759
while (rtio_spsc_consumable(r->cq) < wait_count) {
760-
#ifdef CONFIG_BOARD_NATIVE_POSIX
761-
k_busy_wait(1);
760+
#ifdef CONFIG_ARCH_POSIX
761+
k_busy_wait(10);
762762
#else
763763
k_yield();
764-
#endif /* CONFIG_BOARD_NATIVE_POSIX */
764+
#endif /* CONFIG_ARCH_POSIX */
765765
}
766766
#endif
767767

0 commit comments

Comments
 (0)