diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-07-03 09:29:25 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-02-16 11:19:11 -0500 |
commit | 17c0e7107bed3d578864e6519f7f4e4c324c8f58 (patch) | |
tree | 966cff3219781d2ef1ac66988d26207f771e0bf2 | |
parent | 3bef444797f7624f8fbd27f4e0334ce96a108725 (diff) |
x86: Mark atomic irq ops raw for 32bit legacy
The atomic ops emulation for 32bit legacy CPUs floods the tracer with
irq off/on entries. The irq disabled regions are short and therefor
not interesting when chasing long irq disabled latencies. Mark them
raw and keep them out of the trace.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | arch/x86/include/asm/atomic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/atomic.h b/arch/x86/include/asm/atomic.h index 8baaa719fa7f..8f8217b9bdac 100644 --- a/arch/x86/include/asm/atomic.h +++ b/arch/x86/include/asm/atomic.h | |||
@@ -187,10 +187,10 @@ static inline int atomic_add_return(int i, atomic_t *v) | |||
187 | 187 | ||
188 | #ifdef CONFIG_M386 | 188 | #ifdef CONFIG_M386 |
189 | no_xadd: /* Legacy 386 processor */ | 189 | no_xadd: /* Legacy 386 processor */ |
190 | local_irq_save(flags); | 190 | raw_local_irq_save(flags); |
191 | __i = atomic_read(v); | 191 | __i = atomic_read(v); |
192 | atomic_set(v, i + __i); | 192 | atomic_set(v, i + __i); |
193 | local_irq_restore(flags); | 193 | raw_local_irq_restore(flags); |
194 | return i + __i; | 194 | return i + __i; |
195 | #endif | 195 | #endif |
196 | } | 196 | } |