]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Pull TINY_RCU dyntick-idle tracing into non-idle region
authorPaul E. McKenney <paul.mckenney@linaro.org>
Wed, 11 Jul 2012 07:24:57 +0000 (00:24 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 4 Sep 2012 23:20:31 +0000 (16:20 -0700)
commit7f3d9a8963e17aa2d2b028218d9bc1e66c716ebe
treea159e554e9d14ae366062c8ad9daf594dabfbcd7
parentb563f5a13c65f26d710d54d04b3f9b521b8af469
rcu: Pull TINY_RCU dyntick-idle tracing into non-idle region

Because TINY_RCU's idle detection keys directly off of the nesting
level, rather than from a separate variable as in TREE_RCU, the
TINY_RCU dyntick-idle tracing on transition to idle must happen
before the change to the nesting level.  This commit therefore makes
this change by passing the desired new value (rather than the old value)
of the nesting level in to rcu_idle_enter_common().

[ paulmck: Add fix for wrong-variable bug spotted by
  Michael Wang <wangyun@linux.vnet.ibm.com>. ]

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/rcutiny.c