Skip to content

Commit

Permalink
x86: Mark atomic irq ops raw for 32bit legacy
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar authored and Thomas Gleixner committed Feb 16, 2010
1 parent 3bef444 commit 17c0e71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/include/asm/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 17c0e71

Please sign in to comment.