diff --git a/drivers/bluetooth/hci/h5.c b/drivers/bluetooth/hci/h5.c index b6526a407a0..d8b39eaf0de 100644 --- a/drivers/bluetooth/hci/h5.c +++ b/drivers/bluetooth/hci/h5.c @@ -689,7 +689,7 @@ static void rx_fiber(void) /* Make sure we don't hog the CPU if the rx_queue never * gets empty. */ - fiber_yield(); + k_yield(); } } diff --git a/drivers/bluetooth/nble/uart.c b/drivers/bluetooth/nble/uart.c index 68135640ffb..e33804f4b91 100644 --- a/drivers/bluetooth/nble/uart.c +++ b/drivers/bluetooth/nble/uart.c @@ -86,7 +86,7 @@ static void rx_fiber(void) /* Make sure we don't hog the CPU if the rx_queue never * gets empty. */ - fiber_yield(); + k_yield(); } } diff --git a/subsys/bluetooth/controller/hci/hci_driver.c b/subsys/bluetooth/controller/hci/hci_driver.c index 296cf67c99e..10a0570b74d 100644 --- a/subsys/bluetooth/controller/hci/hci_driver.c +++ b/subsys/bluetooth/controller/hci/hci_driver.c @@ -145,7 +145,7 @@ static void recv_fiber(int unused0, int unused1) BT_ERR("Cannot allocate Num Complete"); } - fiber_yield(); + k_yield(); } if (node_rx) { @@ -188,7 +188,7 @@ static void recv_fiber(int unused0, int unused1) node_rx->hdr.onion.next = 0; radio_rx_mem_release(&node_rx); - fiber_yield(); + k_yield(); } else { k_sem_take(&sem_recv, K_FOREVER); } diff --git a/subsys/bluetooth/host/hci_core.c b/subsys/bluetooth/host/hci_core.c index c3e22d560ed..3bc53ef267b 100644 --- a/subsys/bluetooth/host/hci_core.c +++ b/subsys/bluetooth/host/hci_core.c @@ -3616,7 +3616,7 @@ static void hci_rx_fiber(bt_ready_cb_t ready_cb) /* Make sure we don't hog the CPU if the rx_queue never * gets empty. */ - fiber_yield(); + k_yield(); } }