From: Paul E. McKenney Date: Sat, 4 Oct 2014 10:43:41 +0000 (-0700) Subject: rcu: Optimize cond_resched_rcu_qs() X-Git-Tag: omap-for-v3.19/fixes-rc1~168^2^2^4~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6331ae8afe4118884c4b6e14a213758d88422b2;p=pandora-kernel.git 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 --- Reading git-diff-tree failed