diff options
author | 2014-10-04 03:43:41 -0700 | |
---|---|---|
committer | 2014-11-13 10:35:39 -0800 | |
commit | b6331ae8afe4118884c4b6e14a213758d88422b2 (patch) | |
tree | d8e91863e7ddd26f8bc98f066dc8ea0ab24c7501 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | rcu: Add sparse check for RCU_INIT_POINTER() (diff) | |
download | linux-dev-b6331ae8afe4118884c4b6e14a213758d88422b2.tar.xz linux-dev-b6331ae8afe4118884c4b6e14a213758d88422b2.zip |
rcu: Optimize cond_resched_rcu_qs()
The current implementation of cond_resched_rcu_qs() can invoke
rcu_note_voluntary_context_switch() twice in the should_resched()
case, once via the call to __schedule() and once directly. However, as
noted by Joe Lawrence in a patch to the team subsystem, cond_resched()
returns an indication as to whether or not the call to __schedule()
actually happened. This commit therefore changes cond_resched_rcu_qs()
so as to invoke rcu_note_voluntary_context_switch() only when __schedule()
was not called.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions