]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
x86: Mark atomic irq ops raw for 32bit legacy
authorIngo Molnar <mingo@elte.hu>
Fri, 3 Jul 2009 13:29:25 +0000 (08:29 -0500)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 16 Feb 2010 16:19:11 +0000 (17:19 +0100)
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>
arch/x86/include/asm/atomic.h

index 8baaa719fa7f0bcb587205335d075708d47df2b0..8f8217b9bdac67a7312959cad211232f60fbb8ce 100644 (file)
@@ -187,10 +187,10 @@ static inline int atomic_add_return(int i, atomic_t *v)
 
 #ifdef CONFIG_M386
 no_xadd: /* Legacy 386 processor */
-       local_irq_save(flags);
+       raw_local_irq_save(flags);
        __i = atomic_read(v);
        atomic_set(v, i + __i);
-       local_irq_restore(flags);
+       raw_local_irq_restore(flags);
        return i + __i;
 #endif
 }