]> git.karo-electronics.de Git - karo-tx-linux.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)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 5 Sep 2012 01:11:52 +0000 (18:11 -0700)
commite41b10b28a1818ea0d150982a5450dab64025374
tree91c935a27b9751644090d2744f9d17e5ab55ee80
parent3d54219cfa42df7ff47107b490c57d383d530ff6
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