diff options
Diffstat (limited to 'kernel/trace/trace_clock.c')
| -rw-r--r-- | kernel/trace/trace_clock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/trace/trace_clock.c b/kernel/trace/trace_clock.c index 84a3a7ba072a..9d589d8dcd1a 100644 --- a/kernel/trace/trace_clock.c +++ b/kernel/trace/trace_clock.c | |||
| @@ -13,6 +13,7 @@ | |||
| 13 | * Tracer plugins will chose a default from these clocks. | 13 | * Tracer plugins will chose a default from these clocks. |
| 14 | */ | 14 | */ |
| 15 | #include <linux/spinlock.h> | 15 | #include <linux/spinlock.h> |
| 16 | #include <linux/irqflags.h> | ||
| 16 | #include <linux/hardirq.h> | 17 | #include <linux/hardirq.h> |
| 17 | #include <linux/module.h> | 18 | #include <linux/module.h> |
| 18 | #include <linux/percpu.h> | 19 | #include <linux/percpu.h> |
| @@ -83,7 +84,7 @@ u64 notrace trace_clock_global(void) | |||
| 83 | int this_cpu; | 84 | int this_cpu; |
| 84 | u64 now; | 85 | u64 now; |
| 85 | 86 | ||
| 86 | raw_local_irq_save(flags); | 87 | local_irq_save(flags); |
| 87 | 88 | ||
| 88 | this_cpu = raw_smp_processor_id(); | 89 | this_cpu = raw_smp_processor_id(); |
| 89 | now = cpu_clock(this_cpu); | 90 | now = cpu_clock(this_cpu); |
| @@ -109,7 +110,7 @@ u64 notrace trace_clock_global(void) | |||
| 109 | arch_spin_unlock(&trace_clock_struct.lock); | 110 | arch_spin_unlock(&trace_clock_struct.lock); |
| 110 | 111 | ||
| 111 | out: | 112 | out: |
| 112 | raw_local_irq_restore(flags); | 113 | local_irq_restore(flags); |
| 113 | 114 | ||
| 114 | return now; | 115 | return now; |
| 115 | } | 116 | } |
