]> git.karo-electronics.de Git - linux-beck.git/commitdiff
rcu: Remove event tracing from rcu_cpu_notify(), used by offline CPUs
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 1 Feb 2015 05:12:02 +0000 (21:12 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 11 Mar 2015 20:22:39 +0000 (13:22 -0700)
Offline CPUs cannot safely invoke trace events, but such CPUs do execute
within rcu_cpu_notify().  Therefore, this commit removes the trace events
from rcu_cpu_notify().  These trace events are for utilization, against
which rcu_cpu_notify() execution time should be negligible.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree.c

index b42001fd55fbe0020d09590848f44ca2a3a94127..a7151d26b940cd8be156527aaf2146e891b5cd5c 100644 (file)
@@ -3629,7 +3629,6 @@ static int rcu_cpu_notify(struct notifier_block *self,
        struct rcu_node *rnp = rdp->mynode;
        struct rcu_state *rsp;
 
-       trace_rcu_utilization(TPS("Start CPU hotplug"));
        switch (action) {
        case CPU_UP_PREPARE:
        case CPU_UP_PREPARE_FROZEN:
@@ -3661,7 +3660,6 @@ static int rcu_cpu_notify(struct notifier_block *self,
        default:
                break;
        }
-       trace_rcu_utilization(TPS("End CPU hotplug"));
        return NOTIFY_OK;
 }