diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-05-12 15:20:58 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-24 05:25:23 -0400 |
commit | 801a175bf601f9a9d5e86e92dee9adeeb6625da8 (patch) | |
tree | 05d82b1a935a9e2558402fd3d399196b6f60162e | |
parent | 138295373ccf7625fcb0218dfea114837983bc39 (diff) |
mmiotrace: ftrace fix
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | kernel/trace/trace.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index d14fe49e9638..4dcc4e85c5d6 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -838,12 +838,16 @@ void __trace_mmiotrace_rw(struct trace_array *tr, struct trace_array_cpu *data, | |||
838 | struct trace_entry *entry; | 838 | struct trace_entry *entry; |
839 | unsigned long irq_flags; | 839 | unsigned long irq_flags; |
840 | 840 | ||
841 | spin_lock_irqsave(&data->lock, irq_flags); | 841 | raw_local_irq_save(irq_flags); |
842 | __raw_spin_lock(&data->lock); | ||
843 | |||
842 | entry = tracing_get_trace_entry(tr, data); | 844 | entry = tracing_get_trace_entry(tr, data); |
843 | tracing_generic_entry_update(entry, 0); | 845 | tracing_generic_entry_update(entry, 0); |
844 | entry->type = TRACE_MMIO_RW; | 846 | entry->type = TRACE_MMIO_RW; |
845 | entry->mmiorw = *rw; | 847 | entry->mmiorw = *rw; |
846 | spin_unlock_irqrestore(&data->lock, irq_flags); | 848 | |
849 | __raw_spin_unlock(&data->lock); | ||
850 | raw_local_irq_restore(irq_flags); | ||
847 | 851 | ||
848 | trace_wake_up(); | 852 | trace_wake_up(); |
849 | } | 853 | } |
@@ -854,12 +858,16 @@ void __trace_mmiotrace_map(struct trace_array *tr, struct trace_array_cpu *data, | |||
854 | struct trace_entry *entry; | 858 | struct trace_entry *entry; |
855 | unsigned long irq_flags; | 859 | unsigned long irq_flags; |
856 | 860 | ||
857 | spin_lock_irqsave(&data->lock, irq_flags); | 861 | raw_local_irq_save(irq_flags); |
862 | __raw_spin_lock(&data->lock); | ||
863 | |||
858 | entry = tracing_get_trace_entry(tr, data); | 864 | entry = tracing_get_trace_entry(tr, data); |
859 | tracing_generic_entry_update(entry, 0); | 865 | tracing_generic_entry_update(entry, 0); |
860 | entry->type = TRACE_MMIO_MAP; | 866 | entry->type = TRACE_MMIO_MAP; |
861 | entry->mmiomap = *map; | 867 | entry->mmiomap = *map; |
862 | spin_unlock_irqrestore(&data->lock, irq_flags); | 868 | |
869 | __raw_spin_unlock(&data->lock); | ||
870 | raw_local_irq_restore(irq_flags); | ||
863 | 871 | ||
864 | trace_wake_up(); | 872 | trace_wake_up(); |
865 | } | 873 | } |