ARM: 9194/1: assembler: simplify ldr_this_cpu for !SMP builds
authorArd Biesheuvel <ardb@kernel.org>
Wed, 20 Apr 2022 08:38:27 +0000 (09:38 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 20 May 2022 11:32:32 +0000 (12:32 +0100)
commit952f03316352c606bebef56ba8f9642edbb8e348
tree717fda7289bf603b9da924e4ad32c7d909656e67
parent7719a68b2fa404fa8af6b0b7119a38c406c74858
ARM: 9194/1: assembler: simplify ldr_this_cpu for !SMP builds

When CONFIG_SMP is not defined, the CPU offset is always zero, and so
we can simplify the sequence to load a per-CPU variable.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/include/asm/assembler.h