33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
|
|
From a6f84e8f2c1fef8ca8f48f81e2e6a1b823d9a90e Mon Sep 17 00:00:00 2001
|
||
|
|
From: Kunkun Jiang <jiangkunkun@huawei.com>
|
||
|
|
Date: Fri, 21 Apr 2023 14:53:46 +0800
|
||
|
|
Subject: [PATCH] core/cpu-common: Fix the wrong '#ifdef __aarch64__'
|
||
|
|
|
||
|
|
commit c3f86c199885 ("arm/virt: Correct timing of executing
|
||
|
|
cpu_synchronize_post_init for hot-plugged cpus") used the
|
||
|
|
wrong '#ifdef __aarch64__'. It should be '#ifndef __aarch64__'.
|
||
|
|
|
||
|
|
Fixes: c3f86c199885 ("arm/virt: Correct timing of executing
|
||
|
|
cpu_synchronize_post_init for hot-plugged cpus")
|
||
|
|
Signed-off-by: Kunkun Jiang <jiangkunkun@huawei.com>
|
||
|
|
---
|
||
|
|
hw/core/cpu-common.c | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/hw/core/cpu-common.c b/hw/core/cpu-common.c
|
||
|
|
index 2213840260..92d15f2f49 100644
|
||
|
|
--- a/hw/core/cpu-common.c
|
||
|
|
+++ b/hw/core/cpu-common.c
|
||
|
|
@@ -206,7 +206,7 @@ static void cpu_common_realizefn(DeviceState *dev, Error **errp)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
-#ifdef __aarch64__
|
||
|
|
+#ifndef __aarch64__
|
||
|
|
if (dev->hotplugged) {
|
||
|
|
cpu_synchronize_post_init(cpu);
|
||
|
|
cpu_resume(cpu);
|
||
|
|
--
|
||
|
|
2.27.0
|
||
|
|
|