diff mbox series

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

Message ID 1684506832-41392-2-git-send-email-mikelley@microsoft.com (mailing list archive)
State New, archived
Headers show
Series [1/2] x86/hyperv: Fix hyperv_pcpu_input_arg handling when CPUs go online/offline | expand

Commit Message

Michael Kelley (LINUX) May 19, 2023, 2:33 p.m. UTC
State CPUHP_AP_HYPERV_ONLINE has been introduced to correctly sequence
the initialization of hyperv_pcpu_input_arg. Use this use new state
for Hyper-V initialization so that hyperv_pcpu_input_arg is allocated
early enough.

Signed-off-by: Michael Kelley <mikelley@microsoft.com>
---
 arch/arm64/hyperv/mshyperv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Dexuan Cui May 23, 2023, 4:05 a.m. UTC | #1
> From: Michael Kelley (LINUX) <mikelley@microsoft.com>
> Sent: Friday, May 19, 2023 7:34 AM
> To: KY Srinivasan <kys@microsoft.com>; Haiyang Zhang
> ...
> State CPUHP_AP_HYPERV_ONLINE has been introduced to correctly sequence
> the initialization of hyperv_pcpu_input_arg. Use this use new state

s/this use/ this

> for Hyper-V initialization so that hyperv_pcpu_input_arg is allocated
> early enough.
diff mbox series

Patch

diff --git a/arch/arm64/hyperv/mshyperv.c b/arch/arm64/hyperv/mshyperv.c
index a406454..f1b8a04 100644
--- a/arch/arm64/hyperv/mshyperv.c
+++ b/arch/arm64/hyperv/mshyperv.c
@@ -67,7 +67,7 @@  static int __init hyperv_init(void)
 	if (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);
 	if (ret < 0) {
 		hv_common_free();