diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-07-26 23:44:00 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-08-31 02:03:45 +0300 |
commit | fced9c8cfe6bc8a26dbbf785927aa673c83a7a35 (patch) | |
tree | 04b80df17ce5b236c0aa4fef28a5d1ab6bf889b0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d3052109c0bc9e536d17d627ae628ed8ceb6928c (diff) | |
download | linux-fced9c8cfe6bc8a26dbbf785927aa673c83a7a35.tar.xz |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions