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)
committerPhil Elwell <phil@raspberrypi.com>
Thu, 28 Oct 2021 11:20:34 +0000 (12:20 +0100)
commit6339f4887c8d027ec354916f10d9ee48d0db71ee
tree0b5217f6c6ef3db4f78d451f8015c62d128790b1
parenta50f65b892da3a231d7bee31cd8da38a13744599
ARM: sleep.S: use PC-relative insn sequence for sleep_save_sp/mpidr_hash

commit d74d2b225018baa0e04e080ee9e80b21667ba3a2 upstream.

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