Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100601
b: refs/heads/master
c: 801a175
h: refs/heads/master
i:
  100599: 308c097
v: v3
  • Loading branch information
Ingo Molnar authored and Thomas Gleixner committed May 24, 2008
1 parent 5ce37b6 commit 81e18ca
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 138295373ccf7625fcb0218dfea114837983bc39
refs/heads/master: 801a175bf601f9a9d5e86e92dee9adeeb6625da8
16 changes: 12 additions & 4 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -838,12 +838,16 @@ void __trace_mmiotrace_rw(struct trace_array *tr, struct trace_array_cpu *data,
struct trace_entry *entry;
unsigned long irq_flags;

spin_lock_irqsave(&data->lock, irq_flags);
raw_local_irq_save(irq_flags);
__raw_spin_lock(&data->lock);

entry = tracing_get_trace_entry(tr, data);
tracing_generic_entry_update(entry, 0);
entry->type = TRACE_MMIO_RW;
entry->mmiorw = *rw;
spin_unlock_irqrestore(&data->lock, irq_flags);

__raw_spin_unlock(&data->lock);
raw_local_irq_restore(irq_flags);

trace_wake_up();
}
Expand All @@ -854,12 +858,16 @@ void __trace_mmiotrace_map(struct trace_array *tr, struct trace_array_cpu *data,
struct trace_entry *entry;
unsigned long irq_flags;

spin_lock_irqsave(&data->lock, irq_flags);
raw_local_irq_save(irq_flags);
__raw_spin_lock(&data->lock);

entry = tracing_get_trace_entry(tr, data);
tracing_generic_entry_update(entry, 0);
entry->type = TRACE_MMIO_MAP;
entry->mmiomap = *map;
spin_unlock_irqrestore(&data->lock, irq_flags);

__raw_spin_unlock(&data->lock);
raw_local_irq_restore(irq_flags);

trace_wake_up();
}
Expand Down

0 comments on commit 81e18ca

Please sign in to comment.