diff options
Diffstat (limited to 'kernel/trace/trace.c')
-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 | } |