aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_irqsoff.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace_irqsoff.c')
-rw-r--r--kernel/trace/trace_irqsoff.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/trace/trace_irqsoff.c b/kernel/trace/trace_irqsoff.c
index 06f8ea9e4b9d..3aa7eaa2114c 100644
--- a/kernel/trace/trace_irqsoff.c
+++ b/kernel/trace/trace_irqsoff.c
@@ -157,8 +157,10 @@ check_critical_timing(struct trace_array *tr,
157 157
158 data->critical_end = parent_ip; 158 data->critical_end = parent_ip;
159 159
160 tracing_max_latency = delta; 160 if (likely(!is_tracing_stopped())) {
161 update_max_tr_single(tr, current, cpu); 161 tracing_max_latency = delta;
162 update_max_tr_single(tr, current, cpu);
163 }
162 164
163 max_sequence++; 165 max_sequence++;
164 166