[cpuops cmpxchg V2 0/5] Cmpxchg and xchg operations

From: Christoph Lameter
Date: Tue Dec 14 2010 - 11:30:12 EST


Add cmpxchg and xchg operations to the cpu ops and use them for irq handling
and for vm statistics.

Requires the per cpu patches for and_return cpu ops.

V1->V2:
- Determine that cmpxchg without LOCK is faster than xchg with
implied lock (numbers are in the patch description).
- Drop 64 bit cpuops operations on 32 bit x86 (resulted in various
nasty things such as 64 bit alignment requirements for 64 bit
entities on 32 bit, sizable inline code and very complex macros)


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/