ARM: head: use PC-relative insn sequence for __smp_alt
authorArd Biesheuvel <ardb@kernel.org>
Mon, 14 Sep 2020 08:25:29 +0000 (11:25 +0300)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 28 Oct 2020 16:05:40 +0000 (17:05 +0100)
commit59d2f2827dfdccf8911d5e51465136b52ba623c4
tree2f34648c07b684ddd67f3cb21d5cbfa6c53a411a
parent450abd38fe6c6313ce9bdd9dce81c1dd604f6fb0
ARM: head: use PC-relative insn sequence for __smp_alt

Now that calling __do_fixup_smp_on_up() can be done without passing
the physical-to-virtual offset in r3, we can replace the open coded
PC relative offset calculations with a pair of adr_l invocations. This
removes some open coded arithmetic involving virtual addresses, avoids
literal pools on v7+, and slightly reduces the footprint of the code.

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