Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0f74036 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

rcu: Avoid invoking RCU core on offline CPUs



Offline CPUs transition through the scheduler to the idle loop one
last time before being shut down.  This can result in RCU raising
softirq on this CPU, which is at best useless given that the CPU's
callbacks will be offloaded at CPU_DEAD time.  This commit therefore
avoids raising softirq on offline CPUs.

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
parent b5b39360
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2169,6 +2169,7 @@ static void invoke_rcu_callbacks(struct rcu_state *rsp, struct rcu_data *rdp)

static void invoke_rcu_core(void)
{
	if (cpu_online(smp_processor_id()))
		raise_softirq(RCU_SOFTIRQ);
}