]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Apply micro-optimization and int/bool fixes to RCU's idle handling
authorPaul E. McKenney <paul.mckenney@linaro.org>
Wed, 5 Sep 2012 00:35:31 +0000 (17:35 -0700)
committerFrederic Weisbecker <fweisbec@gmail.com>
Wed, 26 Sep 2012 13:47:18 +0000 (15:47 +0200)
commit58a5a225574d452a1d4c2a655afce9a8d346de75
treeb20795decb064af75aae8f9f6af77806b1a4769a
parentc8a8cb69795d8f51b14fcee3fc7f7c0972377a17
rcu: Apply micro-optimization and int/bool fixes to RCU's idle handling

Checking "user" before "is_idle_task()" allows better optimizations
in cases where inlining is possible.  Also, "bool" should be passed
"true" or "false" rather than "1" or "0".  This commit therefore makes
these changes, as noted in Josh's review.

Reported-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
kernel/rcutree.c