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>
Sun, 23 Sep 2012 14:42:49 +0000 (07:42 -0700)
commit818615c4cde2a71a5857007b134cce89d506cc3f
tree71204f4c20bac45df7875169d9baaa3953c0aec6
parente3ebfb96f396731ca2d0b108785d5da31b53ab00
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