Skip to content

Commit

Permalink
s390/percpu: remove this_cpu_cmpxchg_double_4
Browse files Browse the repository at this point in the history
git commit 26f15ca ("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>
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Mar 2, 2016
1 parent b1685ab commit f369b98
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/s390/include/asm/percpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@
ret__; \
})

#define this_cpu_cmpxchg_double_4 arch_this_cpu_cmpxchg_double
#define this_cpu_cmpxchg_double_8 arch_this_cpu_cmpxchg_double

#include <asm-generic/percpu.h>
Expand Down

0 comments on commit f369b98

Please sign in to comment.