Skip to content

Commit a3e8162

Browse files
paulmckrcufbq
authored andcommitted
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 <[email protected]> Cc: Frederic Weisbecker <[email protected]> Signed-off-by: Boqun Feng <[email protected]>
1 parent 2014c95 commit a3e8162

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

kernel/rcu/tree_exp.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,17 +230,19 @@ static void __maybe_unused rcu_report_exp_rnp(struct rcu_node *rnp, bool wake)
230230
* specified leaf rcu_node structure, which is acquired by the caller.
231231
*/
232232
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)
234234
__releases(rnp->lock)
235235
{
236236
int cpu;
237+
unsigned long mask;
237238
struct rcu_data *rdp;
238239

239240
raw_lockdep_assert_held_rcu_node(rnp);
240-
if (!(rnp->expmask & mask)) {
241+
if (!(rnp->expmask & mask_in)) {
241242
raw_spin_unlock_irqrestore_rcu_node(rnp, flags);
242243
return;
243244
}
245+
mask = mask_in & rnp->expmask;
244246
WRITE_ONCE(rnp->expmask, rnp->expmask & ~mask);
245247
for_each_leaf_node_cpu_mask(rnp, cpu, mask) {
246248
rdp = per_cpu_ptr(&rcu_data, cpu);

0 commit comments

Comments
 (0)