]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf012bbc88190064c2a7790f55e659834dccec34d
tree717fda7289bf603b9da924e4ad32c7d909656e67
parent19051358cbc0935b5a1f66e4314623c2ad911315
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