Commit e646ac5b authored by Qais Yousef's avatar Qais Yousef Committed by Thomas Gleixner
Browse files

arm64: hibernate: Use bringup_hibernate_cpu()



Use bringup_hibernate_cpu() instead of open coding it.

[ tglx: Split out the core change ]

Signed-off-by: default avatarQais Yousef <qais.yousef@arm.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Link: https://lkml.kernel.org/r/20200323135110.30522-9-qais.yousef@arm.com
parent d720f986
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -166,15 +166,12 @@ int arch_hibernation_header_restore(void *addr)
		sleep_cpu = -EINVAL;
		return -EINVAL;
	}
	if (!cpu_online(sleep_cpu)) {
		pr_info("Hibernated on a CPU that is offline! Bringing CPU up.\n");
		ret = cpu_up(sleep_cpu);

	ret = bringup_hibernate_cpu(sleep_cpu);
	if (ret) {
			pr_err("Failed to bring hibernate-CPU up!\n");
		sleep_cpu = -EINVAL;
		return ret;
	}
	}

	resume_hdr = *hdr;