Bluetooth: controller: refactor ll_rx_put/sched
Instead of calling both ll_rx_put and ll_rx_sched, combine into one function Signed-off-by: Erik Brockhoff <erbr@oticon.com>
This commit is contained in:
parent
ee2a43b5dc
commit
ddeb0e9f6e
18 changed files with 58 additions and 90 deletions
|
@ -412,8 +412,7 @@ static void lp_comm_ntf(struct ll_conn *conn, struct proc_ctx *ctx)
|
|||
}
|
||||
|
||||
/* Enqueue notification towards LL */
|
||||
ll_rx_put(ntf->hdr.link, ntf);
|
||||
ll_rx_sched();
|
||||
ll_rx_put_sched(ntf->hdr.link, ntf);
|
||||
}
|
||||
|
||||
static void lp_comm_terminate_invalid_pdu(struct ll_conn *conn, struct proc_ctx *ctx)
|
||||
|
@ -1187,8 +1186,7 @@ static void rp_comm_ntf(struct ll_conn *conn, struct proc_ctx *ctx)
|
|||
}
|
||||
|
||||
/* Enqueue notification towards LL */
|
||||
ll_rx_put(ntf->hdr.link, ntf);
|
||||
ll_rx_sched();
|
||||
ll_rx_put_sched(ntf->hdr.link, ntf);
|
||||
}
|
||||
#endif /* CONFIG_BT_CTLR_DATA_LENGTH */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue