x86/percpu: Clean up percpu_cmpxchg_op()
authorBrian Gerst <brgerst@gmail.com>
Mon, 20 Jul 2020 20:49:22 +0000 (13:49 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 23 Jul 2020 09:46:42 +0000 (11:46 +0200)
commitebcd580bed4a357ea894e6878d9099b3919f727f
tree564a2e4649bda02fd2c8a14a179a09752db65c48
parent73ca542fbabb68deaa90130a8153cab1fa8288fe
x86/percpu: Clean up percpu_cmpxchg_op()

The core percpu macros already have a switch on the data size, so the switch
in the x86 code is redundant and produces more dead code.

Also use appropriate types for the width of the instructions.  This avoids
errors when compiling with Clang.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Dennis Zhou <dennis@kernel.org>
Link: https://lkml.kernel.org/r/20200720204925.3654302-9-ndesaulniers@google.com
arch/x86/include/asm/percpu.h