summaryrefslogtreecommitdiffstats
path: root/kernel/rcu/rcu.h
diff options
context:
space:
mode:
authorPaul E. McKenney2018-09-22 03:08:09 +0200
committerPaul E. McKenney2018-12-01 21:45:34 +0100
commit5ab7ab8362fa8a4f7995d65ea05edf71530e8004 (patch)
tree4190fcc5cbb3e11acfb85f70efeae31193b16c26 /kernel/rcu/rcu.h
parentrcutorture: Break up too-long rcu_torture_fwd_prog() function (diff)
downloadkernel-qcow2-linux-5ab7ab8362fa8a4f7995d65ea05edf71530e8004.tar.gz
kernel-qcow2-linux-5ab7ab8362fa8a4f7995d65ea05edf71530e8004.tar.xz
kernel-qcow2-linux-5ab7ab8362fa8a4f7995d65ea05edf71530e8004.zip
rcutorture: Affinity forward-progress test to avoid housekeeping CPUs
This commit affinities the forward-progress tests to avoid hogging a housekeeping CPU on the theory that the offloaded callbacks will be running on those housekeeping CPUs. Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com> [ paulmck: Fix NULL-pointer issue located by kbuild test robot. ] Tested-by: Rong Chen <rong.a.chen@intel.com>
Diffstat (limited to 'kernel/rcu/rcu.h')
-rw-r--r--kernel/rcu/rcu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rcu/rcu.h b/kernel/rcu/rcu.h
index 2866166863f0..0f0f5ae8c3d4 100644
--- a/kernel/rcu/rcu.h
+++ b/kernel/rcu/rcu.h
@@ -539,8 +539,10 @@ extern struct workqueue_struct *rcu_par_gp_wq;
#ifdef CONFIG_RCU_NOCB_CPU
bool rcu_is_nocb_cpu(int cpu);
+void rcu_bind_current_to_nocb(void);
#else
static inline bool rcu_is_nocb_cpu(int cpu) { return false; }
+static inline void rcu_bind_current_to_nocb(void) { }
#endif
#endif /* __LINUX_RCU_H */