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

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

rcu: Avoid resched_cpu() when rescheduling the current CPU



The resched_cpu() interface is quite handy, but it does acquire the
specified CPU's runqueue lock, which does not come for free.  This
commit therefore substitutes the following when directing resched_cpu()
at the current CPU:

	set_tsk_need_resched(current);
	set_preempt_need_resched();

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
parent d3052109
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment