Commit 52ae076c authored by Michael Kelley's avatar Michael Kelley Committed by Wei Liu
Browse files

arm64/hyperv: Use CPUHP_AP_HYPERV_ONLINE state to fix CPU online sequencing



State CPUHP_AP_HYPERV_ONLINE has been introduced to correctly sequence the
initialization of hyperv_pcpu_input_arg. Use this new state for Hyper-V
initialization so that hyperv_pcpu_input_arg is allocated early enough.

Signed-off-by: default avatarMichael Kelley <mikelley@microsoft.com>
Reviewed-by: default avatarDexuan Cui <decui@microsoft.com>
Link: https://lore.kernel.org/r/1684862062-51576-2-git-send-email-mikelley@microsoft.com


Signed-off-by: default avatarWei Liu <wei.liu@kernel.org>
parent 9636be85
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -67,7 +67,7 @@ static int __init hyperv_init(void)
	if (ret)
	if (ret)
		return ret;
		return ret;


	ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "arm64/hyperv_init:online",
	ret = cpuhp_setup_state(CPUHP_AP_HYPERV_ONLINE, "arm64/hyperv_init:online",
				hv_common_cpu_init, hv_common_cpu_die);
				hv_common_cpu_init, hv_common_cpu_die);
	if (ret < 0) {
	if (ret < 0) {
		hv_common_free();
		hv_common_free();