rcu: Remove rcu_is_idle_cpu()
authorYipeng Zou <zouyipeng@huawei.com>
Mon, 26 Sep 2022 01:58:27 +0000 (09:58 +0800)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 21 Oct 2022 17:11:00 +0000 (10:11 -0700)
commitfdbdb868454a3e83996cf1500c6f7ba73c07a03c
tree50147a66b56739d788139e58f2e22260f75d05ee
parente9f8a790bf682bb4a2f79d0d905b34d55bceb71d
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>
include/linux/rcutiny.h
include/linux/rcutree.h
kernel/rcu/tree.c