diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-07-26 13:44:00 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-08-30 16:03:45 -0700 |
commit | fced9c8cfe6bc8a26dbbf785927aa673c83a7a35 (patch) | |
tree | 04b80df17ce5b236c0aa4fef28a5d1ab6bf889b0 /block | |
parent | d3052109c0bc9e536d17d627ae628ed8ceb6928c (diff) | |
download | linux-fced9c8cfe6bc8a26dbbf785927aa673c83a7a35.tar.gz linux-fced9c8cfe6bc8a26dbbf785927aa673c83a7a35.tar.bz2 linux-fced9c8cfe6bc8a26dbbf785927aa673c83a7a35.zip |
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: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions