linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] acpi: Fix the mapping handle in case of declaring processors using the Device operator
@ 2017-02-16 10:38 Dou Liyang
  2017-02-16 10:38 ` [PATCH 2/2] acpi: Fix the check " Dou Liyang
  2017-02-16 13:06 ` [PATCH 1/2] acpi: Fix the mapping " Hanjun Guo
  0 siblings, 2 replies; 4+ messages in thread
From: Dou Liyang @ 2017-02-16 10:38 UTC (permalink / raw)
  To: rjw, rafael, lenb; +Cc: linux-acpi, linux-kernel, Dou Liyang

In ACPI spec, we can declare processors using both Processor and
Device operator. But now, we just handle the mapping of processors
which are declared by Processor operator.

It misses the processors declared by Device operator.

The patch adds this case of the Device operator.

Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
---
 drivers/acpi/processor_core.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c
index 611a558..1aab5b0 100644
--- a/drivers/acpi/processor_core.c
+++ b/drivers/acpi/processor_core.c
@@ -344,8 +344,10 @@ void __init acpi_set_processor_mapping(void)
 {
 	/* Set persistent cpu <-> node mapping for all processors. */
 	acpi_walk_namespace(ACPI_TYPE_PROCESSOR, ACPI_ROOT_OBJECT,
-			    ACPI_UINT32_MAX, set_processor_node_mapping,
-			    NULL, NULL, NULL);
+				ACPI_UINT32_MAX, set_processor_node_mapping,
+				NULL, NULL, NULL);
+	acpi_get_devices(ACPI_PROCESSOR_DEVICE_HID, set_processor_node_mapping,
+				NULL, NULL);
 }
 #else
 void __init acpi_set_processor_mapping(void) {}
-- 
2.5.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-17  1:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-16 10:38 [PATCH 1/2] acpi: Fix the mapping handle in case of declaring processors using the Device operator Dou Liyang
2017-02-16 10:38 ` [PATCH 2/2] acpi: Fix the check " Dou Liyang
2017-02-16 13:06 ` [PATCH 1/2] acpi: Fix the mapping " Hanjun Guo
2017-02-17  1:48   ` Dou Liyang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).