[PATCH 1/3] ARM: move cpu_resume() to .text section
sudeep.holla at arm.com
Tue Mar 24 10:23:52 PDT 2015
On 24/03/15 16:10, Ard Biesheuvel wrote:
> 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.
> Signed-off-by: Ard Biesheuvel <ard.biesheuvel at linaro.org>
(Tested on Vexpress TC2 with CPUIdle enabled)
Tested-by: Sudeep Holla <sudeep.holla at arm.com>
More information about the linux-arm-kernel