Bluetooth: Controller: Fix assertion using BT_CTLR_LOW_LAT_ULL_DONE
BT_CTLR_LOW_LAT_ULL_DONE is used to reduce CPU usage in LLL context by delegating the done event dequeue to ULL_HIGH context. Building a HCI Controller with BT_CTLR_LOW_LAT_ULL_DONE had assertion when used with BlueZ stack. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
cebaad33b1
commit
ede31d39f0
@ -525,10 +525,6 @@ int lll_done(void *param)
|
||||
param = event.curr.param;
|
||||
event.curr.param = NULL;
|
||||
|
||||
#if defined(CONFIG_BT_CTLR_LOW_LAT_ULL_DONE)
|
||||
done_inc();
|
||||
#endif /* CONFIG_BT_CTLR_LOW_LAT_ULL_DONE */
|
||||
|
||||
if (param) {
|
||||
ull = HDR_LLL2ULL(param);
|
||||
} else {
|
||||
@ -549,7 +545,9 @@ int lll_done(void *param)
|
||||
|
||||
#if !defined(CONFIG_BT_CTLR_LOW_LAT_ULL_DONE)
|
||||
ull_prepare_dequeue(TICKER_USER_ID_LLL);
|
||||
#endif /* !CONFIG_BT_CTLR_LOW_LAT_ULL_DONE */
|
||||
#else /* CONFIG_BT_CTLR_LOW_LAT_ULL_DONE */
|
||||
done_inc();
|
||||
#endif /* CONFIG_BT_CTLR_LOW_LAT_ULL_DONE */
|
||||
|
||||
#if defined(CONFIG_BT_CTLR_JIT_SCHEDULING)
|
||||
struct event_done_extra *extra;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user