x86: this_cpu_cmpxchg and this_cpu_xchg operations
authorChristoph Lameter <cl@linux.com>
Tue, 14 Dec 2010 16:28:44 +0000 (10:28 -0600)
committerTejun Heo <tj@kernel.org>
Sat, 18 Dec 2010 14:54:04 +0000 (15:54 +0100)
commit7296e08abac0a22a2534a4f6e493c764f2c77583
tree3aa79d3046bf227b14d1f718fa097f87f6257fb9
parent2b7124428561c7c3cfa4a58cc4c6feea53f3148e
x86: this_cpu_cmpxchg and this_cpu_xchg operations

Provide support as far as the hardware capabilities of the x86 cpus
allow.

Define CONFIG_CMPXCHG_LOCAL in Kconfig.cpu to allow core code to test for
fast cpuops implementations.

V1->V2:
- Take out the definition for this_cpu_cmpxchg_8 and move it into
  a separate patch.

tj: - Reordered ops to better follow this_cpu_* organization.
    - Renamed macro temp variables similar to their existing
      neighbours.

Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
arch/x86/Kconfig.cpu
arch/x86/include/asm/percpu.h