[PATCH 0/2] ARM: optimize some variable accesses

Ard Biesheuvel ardb at kernel.org
Tue Mar 1 04:04:38 PST 2022


Now that we have an efficient way to load variables from asm code on any
arch revision, get rid of any explicit literals that are no longer
needed (#2). Patch #1 tweaks the !SMP case for ldr_this_cpu, which uses
the same macros.

Cc: Russell King <linux at armlinux.org.uk>
Cc: Arnd Bergmann <arnd at arndb.de>
Cc: Linus Walleij <linus.walleij at linaro.org>

Ard Biesheuvel (2):
  ARM: assembler: simplify ldr_this_cpu for !SMP builds
  ARM: entry: avoid explicit literal loads

 arch/arm/include/asm/assembler.h | 28 +++++++++------
 arch/arm/kernel/entry-armv.S     | 37 ++++----------------
 arch/arm/kernel/entry-common.S   | 10 +-----
 arch/arm/kernel/entry-header.S   |  3 +-
 4 files changed, 26 insertions(+), 52 deletions(-)

-- 
2.30.2




More information about the linux-arm-kernel mailing list