hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/acpi/processor_pdc.c
....@@ -14,6 +14,8 @@
1414 #include <linux/acpi.h>
1515 #include <acpi/processor.h>
1616
17
+#include <xen/xen.h>
18
+
1719 #include "internal.h"
1820
1921 #define _COMPONENT ACPI_PROCESSOR_COMPONENT
....@@ -50,6 +52,15 @@
5052 return false;
5153 }
5254
55
+ if (xen_initial_domain())
56
+ /*
57
+ * When running as a Xen dom0 the number of processors Linux
58
+ * sees can be different from the real number of processors on
59
+ * the system, and we still need to execute _PDC for all of
60
+ * them.
61
+ */
62
+ return xen_processor_present(acpi_id);
63
+
5364 type = (acpi_type == ACPI_TYPE_DEVICE) ? 1 : 0;
5465 cpuid = acpi_get_cpuid(handle, type, acpi_id);
5566