x86: Support for this_cpu_add, sub, dec, inc_return
authorChristoph Lameter <cl@linux.com>
Mon, 6 Dec 2010 17:40:00 +0000 (11:40 -0600)
committerTejun Heo <tj@kernel.org>
Fri, 17 Dec 2010 14:15:28 +0000 (15:15 +0100)
commit8f1d97c79eb65de1d05799d6b81d79cd94169114
treef9732488505ee3782b48bed139a14190095911d6
parenta663ffff1d2e94a7c549a37d08ed9169ce83bdd6
x86: Support for this_cpu_add, sub, dec, inc_return

Supply an implementation for x86 in order to generate more efficient code.

V2->V3:
- Cleanup
- Remove strange type checking from percpu_add_return_op.

tj: - Dropped unused typedef from percpu_add_return_op().
    - Renamed ret__ to paro_ret__ in percpu_add_return_op().
    - Minor indentation adjustments.

Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
arch/x86/include/asm/percpu.h