x86/acpi: Use %rip-relative addressing in wakeup_64.S
authorUros Bizjak <ubizjak@gmail.com>
Fri, 3 Nov 2023 10:48:22 +0000 (11:48 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 30 Nov 2023 19:09:49 +0000 (20:09 +0100)
commit0978d64f9406122c369d5f46e1eb855646f6c32c
tree569639ca1a93adaf5fd067d931e580f28ea13457
parent2adeed985a42ff3334e6898c8c0827e7626c1336
x86/acpi: Use %rip-relative addressing in wakeup_64.S

This is a "nice-to-have" change with minor code generation benefits:

 - Instruction with %rip-relative address operand is one byte shorter than
   its absolute address counterpart,

 - it is also compatible with position independent executable (-fpie) builds,

 - it is also consistent with what the compiler emits by default when
   a symbol is accessed.

No functional changes intended.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
Link: https://lore.kernel.org/r/20231103104900.409470-1-ubizjak@gmail.com
arch/x86/kernel/acpi/wakeup_64.S