Patchwork ACPI: processor: fix processor_physically_present on UP

login
register
mail settings
Submitter Alexander Chiang
Date June 17, 2010, 3:08 p.m.
Message ID <20100617150853.GF2138@canonical.com>
Download mbox | patch
Permalink /patch/106696/
State New, archived
Headers show

Comments

Patch

diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c
index 5128435..e9699aa 100644
--- a/drivers/acpi/processor_core.c
+++ b/drivers/acpi/processor_core.c
@@ -223,7 +223,7 @@  static bool processor_physically_present(acpi_handle handle)
 	type = (acpi_type == ACPI_TYPE_DEVICE) ? 1 : 0;
 	cpuid = acpi_get_cpuid(handle, type, acpi_id);
 
-	if (cpuid == -1)
+	if ((cpuid == -1) && (num_possible_cpus() > 1))
 		return false;
 
 	return true;