]> git.baikalelectronics.ru Git - kernel.git/commit
s390/percpu: implement this_cpu_xchg()
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 17 Sep 2012 04:38:22 +0000 (06:38 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 26 Sep 2012 13:45:24 +0000 (15:45 +0200)
commitb2a6aac31c53271ba26ca868ad2f6e5b7b87fb18
treebc3b2063834b72205470efea903d366f42ba255b
parent72f9b9fc8aebedc3f152823c20c4293dbee5d359
s390/percpu: implement this_cpu_xchg()

The generic variant has a local_irq_save/restore pair which is quite
expensive. It is sufficient to disable preemption, which is a no-op
with !CONFIG_PREEMPT and then use the regular xchg macro.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/percpu.h