]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - kernel/trace/trace_clock.c
tracing: Fix lockdep warning in global_clock()
[linux-2.6.git] / kernel / trace / trace_clock.c
index 84a3a7ba072ac92507f98d1011c5f15a85b96703..9d589d8dcd1aa7e9470b6868980a20c4aeaf6160 100644 (file)
@@ -13,6 +13,7 @@
  * Tracer plugins will chose a default from these clocks.
  */
 #include <linux/spinlock.h>
+#include <linux/irqflags.h>
 #include <linux/hardirq.h>
 #include <linux/module.h>
 #include <linux/percpu.h>
@@ -83,7 +84,7 @@ u64 notrace trace_clock_global(void)
        int this_cpu;
        u64 now;
 
-       raw_local_irq_save(flags);
+       local_irq_save(flags);
 
        this_cpu = raw_smp_processor_id();
        now = cpu_clock(this_cpu);
@@ -109,7 +110,7 @@ u64 notrace trace_clock_global(void)
        arch_spin_unlock(&trace_clock_struct.lock);
 
  out:
-       raw_local_irq_restore(flags);
+       local_irq_restore(flags);
 
        return now;
 }