|
@@ -62,7 +62,7 @@ static void rcu_idle_enter_common(long long newval)
|
|
|
}
|
|
|
RCU_TRACE(trace_rcu_dyntick(TPS("Start"),
|
|
|
rcu_dynticks_nesting, newval));
|
|
|
- if (!is_idle_task(current)) {
|
|
|
+ if (IS_ENABLED(CONFIG_RCU_TRACE) && !is_idle_task(current)) {
|
|
|
struct task_struct *idle __maybe_unused = idle_task(smp_processor_id());
|
|
|
|
|
|
RCU_TRACE(trace_rcu_dyntick(TPS("Entry error: not idle task"),
|
|
@@ -123,7 +123,7 @@ static void rcu_idle_exit_common(long long oldval)
|
|
|
return;
|
|
|
}
|
|
|
RCU_TRACE(trace_rcu_dyntick(TPS("End"), oldval, rcu_dynticks_nesting));
|
|
|
- if (!is_idle_task(current)) {
|
|
|
+ if (IS_ENABLED(CONFIG_RCU_TRACE) && !is_idle_task(current)) {
|
|
|
struct task_struct *idle __maybe_unused = idle_task(smp_processor_id());
|
|
|
|
|
|
RCU_TRACE(trace_rcu_dyntick(TPS("Exit error: not idle task"),
|