ANDROID: GKI: vendor code needs __balance_callbacks access

Vendor module code needs to ensure that pushes to the balance
callback queue are handled prior to releasing rq locks.
Export __balance_callbacks to facilitate this.

Bug: 241223356
Change-Id: I86a3f5cb6cc7b97d87bd2db3e11cb7a8d99d4aef
Signed-off-by: Stephen Dickey <quic_dickey@quicinc.com>
(cherry picked from commit a2f552f49c9084dcc48b2066888d06a324e34b98)
This commit is contained in:
Stephen Dickey
2022-07-29 12:38:11 -07:00
committed by Treehugger Robot
parent e2fbc5cc3a
commit fdaddcab76

View File

@@ -4851,10 +4851,11 @@ static inline struct callback_head *splice_balance_callbacks(struct rq *rq)
return __splice_balance_callbacks(rq, true);
}
static void __balance_callbacks(struct rq *rq)
void __balance_callbacks(struct rq *rq)
{
do_balance_callbacks(rq, __splice_balance_callbacks(rq, false));
}
EXPORT_SYMBOL_GPL(__balance_callbacks);
static inline void balance_callbacks(struct rq *rq, struct callback_head *head)
{