]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Separate accounting of callbacks from callback-free CPUs
authorPaul E. McKenney <paul.mckenney@linaro.org>
Mon, 29 Oct 2012 14:29:20 +0000 (07:29 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 8 Nov 2012 20:02:32 +0000 (12:02 -0800)
commit870a511503c0eb779fb1e3dabcd22e5955466489
treed216a40ed65a06c7a7a5ebb8ad982994001b1458
parent522a2621a1dcd3cba9b0c248700a2f6b267c1e81
rcu: Separate accounting of callbacks from callback-free CPUs

Currently, callback invocations from callback-free CPUs are accounted to
the CPU that registered the callback, but using the same field that is
used for normal callbacks.  This makes it impossible to determine from
debugfs output whether callbacks are in fact being diverted.  This commit
therefore adds a separate ->n_nocbs_invoked field in the rcu_data structure
in which diverted callback invocations are counted.  RCU's debugfs tracing
still displays normal callback invocations using ci=, but displayed
diverted callbacks with nci=.

Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutree.h
kernel/rcutree_plugin.h
kernel/rcutree_trace.c