Skip to content

Commit 18d7e40

Browse files
cyrillosPaul E. McKenney
authored andcommitted
rcu: rcu_qs -- Use raise_softirq_irqoff to not save irqs twice
The rcu_qs is disabling IRQs by self so no need to do the same in raise_softirq but instead we can save some cycles using raise_softirq_irqoff directly. CC: Paul E. McKenney <paulmck@linux.ibm.com> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
1 parent 671a635 commit 18d7e40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/rcu/tiny.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void rcu_qs(void)
5252
local_irq_save(flags);
5353
if (rcu_ctrlblk.donetail != rcu_ctrlblk.curtail) {
5454
rcu_ctrlblk.donetail = rcu_ctrlblk.curtail;
55-
raise_softirq(RCU_SOFTIRQ);
55+
raise_softirq_irqoff(RCU_SOFTIRQ);
5656
}
5757
local_irq_restore(flags);
5858
}

0 commit comments

Comments
 (0)