Device runtime is using the system workqueue to do operations that are mostly blockers (suspend a device). This should not happen. This commit adds an option to use dedicated queue for the device runtime async operations. The test for this API was assuming that the system workqueue priority (which is cooperative) so we need to change the test priority to be lower than the device runtime workqueue priority. Signed-off-by: Flavio Ceolin <flavio@hubblenetwork.com>
7 lines
129 B
Plaintext
7 lines
129 B
Plaintext
CONFIG_ZTEST=y
|
|
CONFIG_PM=y
|
|
CONFIG_PM_DEVICE=y
|
|
CONFIG_PM_DEVICE_RUNTIME=y
|
|
CONFIG_MP_MAX_NUM_CPUS=1
|
|
CONFIG_ZTEST_THREAD_PRIORITY=3
|