Skip to content

Commit cba9160

Browse files
committed
rtio: workq: Default workqueue to two threads with SPI/I2C/I3C
As to facilitate work items preemption, common for sensor read ops. e.g: - Sensor read (submitted through workqueue). - SPI read (submitted through workqueue using default handler). This requires at least 2 thread pools to allow SPI read to complete, to then come back and complete sensor reading. Signed-off-by: Luis Ubieda <[email protected]>
1 parent 6504a1e commit cba9160

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subsys/rtio/Kconfig.workq

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ config RTIO_WORKQ_STACK_SIZE
2222

2323
config RTIO_WORKQ_THREADS_POOL
2424
int "Number of threads to use for processing work-items"
25+
default 2 if SPI_RTIO || I2C_RTIO || I3C_RTIO
2526
default 1
2627

2728
config RTIO_WORKQ_POOL_ITEMS

0 commit comments

Comments
 (0)