From 51ba045c81b3d00225cfe6866e5fd18a1faddf30 Mon Sep 17 00:00:00 2001 From: Stephen Dickey Date: Fri, 29 Jul 2022 12:38:11 -0700 Subject: [PATCH] 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 implementation of Qualcomm's proprietary load tracking scheme, WALT via stated vendor module. Bug: 241223356 Change-Id: I86a3f5cb6cc7b97d87bd2db3e11cb7a8d99d4aef Signed-off-by: Stephen Dickey --- kernel/sched/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 4ea4b08d9cf4..f56b974465d8 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -4973,10 +4973,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) {