Bluetooth: Use k_yield() instead of deprecated fiber_yield()
Use the unified kernel API k_yield() instead of fiber_yield(). Change-Id: I8f52031f52f7ac8783033a51751dc22decdfa59a Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
80e04e4fd1
commit
b0f0742b6e
4 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue