ARM: 8324/1: move cpu_resume() to .text section
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 25 Mar 2015 06:39:21 +0000 (07:39 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 29 Mar 2015 22:11:57 +0000 (23:11 +0100)
commitd0776aff9a38b1390cc06ffc2c4dcf6ece7c05b9
tree79bba874404434298a52db4e494b2bafa8dcb4f3
parent02e541db0540a2830f4af749c6f2b650abbbb77c
ARM: 8324/1: move cpu_resume() to .text section

Move cpu_resume() to the .text section where it belongs. Change
the adr reference to sleep_save_sp to an explicit PC relative
reference so sleep_save_sp itself can remain in .data.

This helps prevent linker failure on large kernels, as the code
in the .data section may be too far away to be in range for normal
b/bl instructions.

Reviewed-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/sleep.S