]> git.baikalelectronics.ru Git - kernel.git/commit
percpu, x86: Generic inc / dec percpu instructions
authorChristoph Lameter <cl@linux-foundation.org>
Tue, 5 Jan 2010 06:34:50 +0000 (15:34 +0900)
committerTejun Heo <tj@kernel.org>
Tue, 5 Jan 2010 06:34:50 +0000 (15:34 +0900)
commit4e05b815491c5d8663cdcf5e2362df685d96f987
treeffd3a8c0b0c27868600f2a426ad14c0885bf4d7d
parent8506261a1958bc1186bd6ecb51f34e1a3a213175
percpu, x86: Generic inc / dec percpu instructions

Optimize code generated for percpu access by checking for increment and
decrements.

tj: fix incorrect usage of __builtin_constant_p() and restructure
    percpu_add_op() macro.

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