From ebcdb9dc211f42a26523f6a4571304855de2643b Mon Sep 17 00:00:00 2001 From: Qais Yousef Date: Wed, 3 Apr 2024 23:38:02 +0000 Subject: [PATCH] ANDROID: Move cpu_busy_with_softirqs() into sched.h The extern declaration ended up at the end of rt.c instead of sched.h by mistake. Bug: 332629555 Fixes: dcdec80d6bb8 ("ANDROID: Export cpu_busy_with_softirqs()") Signed-off-by: Qais Yousef Change-Id: Id95a1c2261134c4d4f589ec51d350fc5eb2724f9 --- kernel/sched/rt.c | 2 -- kernel/sched/sched.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 7d9fec642662..c0fc24530643 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -3169,5 +3169,3 @@ void print_rt_stats(struct seq_file *m, int cpu) rcu_read_unlock(); } #endif /* CONFIG_SCHED_DEBUG */ - -extern bool cpu_busy_with_softirqs(int cpu); diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 210032735650..f3ee288cc680 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -3278,4 +3278,5 @@ static inline void update_current_exec_runtime(struct task_struct *curr, cgroup_account_cputime(curr, delta_exec); } +extern bool cpu_busy_with_softirqs(int cpu); #endif /* _KERNEL_SCHED_SCHED_H */