]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: sleep.S: use PC-relative insn sequence for sleep_save_sp/mpidr_hash
authorArd Biesheuvel <ardb@kernel.org>
Mon, 14 Sep 2020 08:25:34 +0000 (11:25 +0300)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 28 Oct 2020 16:05:40 +0000 (17:05 +0100)
commit943f6479dc2ae2ddd83f7fc3f629546cf15aa634
treebeab63e6f5b0cce1ef732031af7940a90db4dc1b
parente0c9820191599d20db6cdf3d0f8a90c680deba53
ARM: sleep.S: use PC-relative insn sequence for sleep_save_sp/mpidr_hash

Replace the open coded PC relative offset calculations with adr_l and
ldr_l invocations. This removes some open coded PC relative arithmetic,
avoids literal pools on v7+, and slightly reduces the footprint of the
code. Note that ALT_SMP() expects a single instruction so move the macro
invocation after it.

Reviewed-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/arm/kernel/sleep.S