diff --git a/subsys/bluetooth/Kconfig b/subsys/bluetooth/Kconfig index 9e82343ec5cd9..227d8daa4cfa3 100644 --- a/subsys/bluetooth/Kconfig +++ b/subsys/bluetooth/Kconfig @@ -35,6 +35,11 @@ config BT_CUSTOM endchoice +# The Bluetooth subsystem requires the system workqueue to execute at +# a cooperative priority. +config SYSTEM_WORKQUEUE_PRIORITY + range -256 -1 + if BT_HCI config BT_HCI_RAW diff --git a/subsys/bluetooth/common/dummy.c b/subsys/bluetooth/common/dummy.c index a0d6c8155095b..b9851079e3165 100644 --- a/subsys/bluetooth/common/dummy.c +++ b/subsys/bluetooth/common/dummy.c @@ -11,13 +11,6 @@ #include -/* The Bluetooth subsystem requires the system workqueue to execute at a - * cooperative priority to function correctly. If this build assert triggers - * verify your configuration to ensure that cooperative threads are enabled - * and that the system workqueue priority is negative (cooperative). - */ -BUILD_ASSERT(CONFIG_SYSTEM_WORKQUEUE_PRIORITY < 0); - /* The Bluetooth subsystem requires the Tx thread to execute at higher priority * than the Rx thread as the Tx thread needs to process the acknowledgements * before new Rx data is processed. This is a necessity to correctly detect