diff options
author | Yipeng Zou <zouyipeng@huawei.com> | 2022-09-26 09:58:27 +0800 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2022-10-21 10:11:00 -0700 |
commit | fdbdb868454a3e83996cf1500c6f7ba73c07a03c (patch) | |
tree | 50147a66b56739d788139e58f2e22260f75d05ee /include/linux/rcutiny.h | |
parent | e9f8a790bf682bb4a2f79d0d905b34d55bceb71d (diff) | |
download | linux-stable-fdbdb868454a3e83996cf1500c6f7ba73c07a03c.tar.gz linux-stable-fdbdb868454a3e83996cf1500c6f7ba73c07a03c.tar.bz2 linux-stable-fdbdb868454a3e83996cf1500c6f7ba73c07a03c.zip |
rcu: Remove rcu_is_idle_cpu()
The commit 3fcd6a230fa7 ("x86/cpu: Avoid cpuinfo-induced IPIing of
idle CPUs") introduced rcu_is_idle_cpu() in order to identify the
current CPU idle state. But commit f3eca381bd49 ("x86/aperfmperf:
Replace arch_freq_get_on_cpu()") switched to using MAX_SAMPLE_AGE,
so rcu_is_idle_cpu() is no longer used. This commit therefore removes it.
Fixes: f3eca381bd49 ("x86/aperfmperf: Replace arch_freq_get_on_cpu()")
Signed-off-by: Yipeng Zou <zouyipeng@huawei.com>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'include/linux/rcutiny.h')
-rw-r--r-- | include/linux/rcutiny.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/rcutiny.h b/include/linux/rcutiny.h index 9bc025aa79a3..5c271bf3a1e7 100644 --- a/include/linux/rcutiny.h +++ b/include/linux/rcutiny.h @@ -146,8 +146,6 @@ static inline void rcu_virt_note_context_switch(void) { } static inline void rcu_cpu_stall_reset(void) { } static inline int rcu_jiffies_till_stall_check(void) { return 21 * HZ; } static inline void rcu_irq_exit_check_preempt(void) { } -#define rcu_is_idle_cpu(cpu) \ - (is_idle_task(current) && !in_nmi() && !in_hardirq() && !in_serving_softirq()) static inline void exit_rcu(void) { } static inline bool rcu_preempt_need_deferred_qs(struct task_struct *t) { |