x86/percpu: Introduce size abstraction macros
authorBrian Gerst <brgerst@gmail.com>
Mon, 20 Jul 2020 20:49:15 +0000 (13:49 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 23 Jul 2020 09:46:39 +0000 (11:46 +0200)
commit6865dc3ae93b9acb336ca48bd7b2db3446d89370
treee6b99cb1f35b1773eff412199464013f52c01cf5
parentba47d845d715a010f7b51f6f89bae32845e6acb7
x86/percpu: Introduce size abstraction macros

In preparation for cleaning up the percpu operations, define macros for
abstraction based on the width of the operation.

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-2-ndesaulniers@google.com
arch/x86/include/asm/percpu.h