UPSTREAM: x86/percpu: Clean up percpu_to_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-3-ndesaulniers@google.com (cherry picked from commit c175acc14719e69ecec4dafbb642a7f38c76c064) Change-Id: Ie1e84ec5704adcc3f97ce8bca184ed0cb20c5c0e
Loading
Please register or sign in to comment