Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/percpu: remove this_cpu_cmpxchg_double_4

git commit 26f15caaf993 ("s390/cmpxchg: simplify cmpxchg_double")
removed support for cmpxchg_double for two consecutive four byte
values, for which it would generate a cds instruction.

However I forgot to remove the corresponding define in our percpu
header file, which means that this_cpu_cmpxchg_double would now
incorrectly generate a cdsg instruction if being used on a double four
byte location. Therefore remove the percpu define as well.

There is currently no user and therefore no bug fixed with
this. Obviously any such user could and should simply use cmpxchg.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Heiko Carstens and committed by
Martin Schwidefsky
f369b98e b1685ab9

-1
-1
arch/s390/include/asm/percpu.h
··· 178 178 ret__; \ 179 179 }) 180 180 181 - #define this_cpu_cmpxchg_double_4 arch_this_cpu_cmpxchg_double 182 181 #define this_cpu_cmpxchg_double_8 arch_this_cpu_cmpxchg_double 183 182 184 183 #include <asm-generic/percpu.h>