]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit5917dae83cb02dfe74c9167b79e86e6d65183fa3
treeffd3a8c0b0c27868600f2a426ad14c0885bf4d7d
parent79615760f380ec86cd58204744e774c33fab9211
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