diff options
Diffstat (limited to 'kernel/trace/trace_irqsoff.c')
-rw-r--r-- | kernel/trace/trace_irqsoff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace_irqsoff.c b/kernel/trace/trace_irqsoff.c index f925dbbff2a6..a7db7f040ae0 100644 --- a/kernel/trace/trace_irqsoff.c +++ b/kernel/trace/trace_irqsoff.c | |||
@@ -142,11 +142,11 @@ check_critical_timing(struct trace_array *tr, | |||
142 | 142 | ||
143 | local_save_flags(flags); | 143 | local_save_flags(flags); |
144 | 144 | ||
145 | pc = preempt_count(); | ||
146 | |||
145 | if (!report_latency(delta)) | 147 | if (!report_latency(delta)) |
146 | goto out; | 148 | goto out; |
147 | 149 | ||
148 | pc = preempt_count(); | ||
149 | |||
150 | spin_lock_irqsave(&max_trace_lock, flags); | 150 | spin_lock_irqsave(&max_trace_lock, flags); |
151 | 151 | ||
152 | /* check if we are still the max latency */ | 152 | /* check if we are still the max latency */ |