LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] x86_64: get apic_id later in acpi_numa_processor_affinity_init
@ 2008-02-17  7:00 Yinghai Lu
  2008-02-17 16:21 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Yinghai Lu @ 2008-02-17  7:00 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Andrew Morton, Linux Kernel Mailing List


don't need get that at beginning.

Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>

diff --git a/arch/x86/mm/srat_64.c b/arch/x86/mm/srat_64.c
index ecd91ea..13110f6 100644
--- a/arch/x86/mm/srat_64.c
+++ b/arch/x86/mm/srat_64.c
@@ -132,7 +132,6 @@ acpi_numa_processor_affinity_init(struct acpi_srat_cpu_affinity *pa)
 	int pxm, node;
 	int apic_id;
 
-	apic_id = pa->apic_id;
 	if (srat_disabled())
 		return;
 	if (pa->header.length != sizeof(struct acpi_srat_cpu_affinity)) {
@@ -148,6 +147,8 @@ acpi_numa_processor_affinity_init(struct acpi_srat_cpu_affinity *pa)
 		bad_srat();
 		return;
 	}
+
+	apic_id = pa->apic_id;
 	apicid_to_node[apic_id] = node;
 	acpi_numa = 1;
 	printk(KERN_INFO "SRAT: PXM %u -> APIC %u -> Node %u\n",

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

* Re: [PATCH] x86_64: get apic_id later in acpi_numa_processor_affinity_init
  2008-02-17  7:00 [PATCH] x86_64: get apic_id later in acpi_numa_processor_affinity_init Yinghai Lu
@ 2008-02-17 16:21 ` Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-02-17 16:21 UTC (permalink / raw)
  To: Yinghai Lu; +Cc: Andrew Morton, Linux Kernel Mailing List


* Yinghai Lu <Yinghai.Lu@Sun.COM> wrote:

> don't need get that at beginning.

thanks, applied.

	Ingo

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

end of thread, other threads:[~2008-02-17 16:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-17  7:00 [PATCH] x86_64: get apic_id later in acpi_numa_processor_affinity_init Yinghai Lu
2008-02-17 16:21 ` Ingo Molnar

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).