Commit 6b4a586a authored by Lorenzo Pieralisi's avatar Lorenzo Pieralisi Committed by Luis Henriques

arm64: kernel: add missing __init section marker to cpu_suspend_init

commit 18ab7db6 upstream.

Suspend init function must be marked as __init, since it is not needed
after the kernel has booted. This patch moves the cpu_suspend_init()
function to the __init section.
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
[ luis: 3.16-stable prereq for
  f43c2718 "arm64: kernel: fix __cpu_suspend mm switch on warm-boot" ]
Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
parent 5755059f
......@@ -119,7 +119,7 @@ int cpu_suspend(unsigned long arg)
extern struct sleep_save_sp sleep_save_sp;
extern phys_addr_t sleep_idmap_phys;
static int cpu_suspend_init(void)
static int __init cpu_suspend_init(void)
{
void *ctx_ptr;
......
Markdown is supported
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