Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rcu: Split rcu_report_exp_cpu_mult() mask parameter and use for tracing

This commit renames the rcu_report_exp_cpu_mult() function from "mask"
to "mask_in" and introduced a "mask" local variable to better support
upcoming event-tracing additions.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>

authored by

Paul E. McKenney and committed by
Boqun Feng
a3e81621 2014c95a

+4 -2
+4 -2
kernel/rcu/tree_exp.h
··· 230 230 * specified leaf rcu_node structure, which is acquired by the caller. 231 231 */ 232 232 static void rcu_report_exp_cpu_mult(struct rcu_node *rnp, unsigned long flags, 233 - unsigned long mask, bool wake) 233 + unsigned long mask_in, bool wake) 234 234 __releases(rnp->lock) 235 235 { 236 236 int cpu; 237 + unsigned long mask; 237 238 struct rcu_data *rdp; 238 239 239 240 raw_lockdep_assert_held_rcu_node(rnp); 240 - if (!(rnp->expmask & mask)) { 241 + if (!(rnp->expmask & mask_in)) { 241 242 raw_spin_unlock_irqrestore_rcu_node(rnp, flags); 242 243 return; 243 244 } 245 + mask = mask_in & rnp->expmask; 244 246 WRITE_ONCE(rnp->expmask, rnp->expmask & ~mask); 245 247 for_each_leaf_node_cpu_mask(rnp, cpu, mask) { 246 248 rdp = per_cpu_ptr(&rcu_data, cpu);