arm64: Move cpu_resume into the text section
authorLaura Abbott <lauraa@codeaurora.org>
Fri, 21 Nov 2014 21:50:40 +0000 (21:50 +0000)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 16 Mar 2015 12:59:36 +0000 (20:59 +0800)
commit9953ebb6c1c5132c212739a24f77bf3fcdf8d538
tree76f83d40e9cbe87151b794631e6dee434403f75f
parent41cdcfc2f73434bd19bc16bda70c4106f95d260e
arm64: Move cpu_resume into the text section

The function cpu_resume currently lives in the .data section.
There's no reason for it to be there since we can use relative
instructions without a problem. Move a few cpu_resume data
structures out of the assembly file so the .data annotation
can be dropped completely and cpu_resume ends up in the read
only text section.

Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tested-by: Kees Cook <keescook@chromium.org>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit c3684fbb446501b48dec6677a6a9f61c215053de)
arch/arm64/kernel/sleep.S
arch/arm64/kernel/suspend.c