Skip to content

Commit e646ac5

Browse files
Qais YousefKAGA-KOKO
authored andcommitted
arm64: hibernate: Use bringup_hibernate_cpu()
Use bringup_hibernate_cpu() instead of open coding it. [ tglx: Split out the core change ] Signed-off-by: Qais Yousef <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Catalin Marinas <[email protected]> Cc: Will Deacon <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent d720f98 commit e646ac5

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

arch/arm64/kernel/hibernate.c

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,11 @@ int arch_hibernation_header_restore(void *addr)
166166
sleep_cpu = -EINVAL;
167167
return -EINVAL;
168168
}
169-
if (!cpu_online(sleep_cpu)) {
170-
pr_info("Hibernated on a CPU that is offline! Bringing CPU up.\n");
171-
ret = cpu_up(sleep_cpu);
172-
if (ret) {
173-
pr_err("Failed to bring hibernate-CPU up!\n");
174-
sleep_cpu = -EINVAL;
175-
return ret;
176-
}
169+
170+
ret = bringup_hibernate_cpu(sleep_cpu);
171+
if (ret) {
172+
sleep_cpu = -EINVAL;
173+
return ret;
177174
}
178175

179176
resume_hdr = *hdr;

0 commit comments

Comments
 (0)