Skip to content
Commit 6339f488 authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Phil Elwell
Browse files

ARM: sleep.S: use PC-relative insn sequence for sleep_save_sp/mpidr_hash

commit d74d2b22

 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: default avatarNicolas Pitre <nico@fluxnic.net>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent a50f65b8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment