* [PATCH] Fix bad_srat() to clear all state
@ 2009-07-18 6:56 Andi Kleen
2009-07-22 5:24 ` [tip:x86/urgent] x86-64: " tip-bot for Andi Kleen
0 siblings, 1 reply; 2+ messages in thread
From: Andi Kleen @ 2009-07-18 6:56 UTC (permalink / raw)
To: linux-kernel, x86
Fix bad_srat() to clear all state
Need to clear both nodes and nodes_add state for start/end.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
arch/x86/mm/srat_64.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
Index: linux-2.6.31-rc3-ak/arch/x86/mm/srat_64.c
===================================================================
--- linux-2.6.31-rc3-ak.orig/arch/x86/mm/srat_64.c
+++ linux-2.6.31-rc3-ak/arch/x86/mm/srat_64.c
@@ -85,8 +85,10 @@ static __init void bad_srat(void)
acpi_numa = -1;
for (i = 0; i < MAX_LOCAL_APIC; i++)
apicid_to_node[i] = NUMA_NO_NODE;
- for (i = 0; i < MAX_NUMNODES; i++)
- nodes_add[i].start = nodes[i].end = 0;
+ for (i = 0; i < MAX_NUMNODES; i++) {
+ nodes[i].start = nodes[i].end = 0;
+ nodes_add[i].start = nodes_add[i].end = 0;
+ }
remove_all_active_ranges();
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* [tip:x86/urgent] x86-64: Fix bad_srat() to clear all state
2009-07-18 6:56 [PATCH] Fix bad_srat() to clear all state Andi Kleen
@ 2009-07-22 5:24 ` tip-bot for Andi Kleen
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Andi Kleen @ 2009-07-22 5:24 UTC (permalink / raw)
To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, andi, ak, tglx
Commit-ID: 429b2b319af3987e808c18f6b81313104caf782c
Gitweb: http://git.kernel.org/tip/429b2b319af3987e808c18f6b81313104caf782c
Author: Andi Kleen <andi@firstfloor.org>
AuthorDate: Sat, 18 Jul 2009 08:56:57 +0200
Committer: H. Peter Anvin <hpa@zytor.com>
CommitDate: Tue, 21 Jul 2009 15:20:01 -0700
x86-64: Fix bad_srat() to clear all state
Need to clear both nodes and nodes_add state for start/end.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
LKML-Reference: <20090718065657.GA2898@basil.fritz.box>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: stable@kernel.org
---
arch/x86/mm/srat_64.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/x86/mm/srat_64.c b/arch/x86/mm/srat_64.c
index 2dfcbf9..dbb5381 100644
--- a/arch/x86/mm/srat_64.c
+++ b/arch/x86/mm/srat_64.c
@@ -79,8 +79,10 @@ static __init void bad_srat(void)
acpi_numa = -1;
for (i = 0; i < MAX_LOCAL_APIC; i++)
apicid_to_node[i] = NUMA_NO_NODE;
- for (i = 0; i < MAX_NUMNODES; i++)
- nodes_add[i].start = nodes[i].end = 0;
+ for (i = 0; i < MAX_NUMNODES; i++) {
+ nodes[i].start = nodes[i].end = 0;
+ nodes_add[i].start = nodes_add[i].end = 0;
+ }
remove_all_active_ranges();
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-22 5:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-18 6:56 [PATCH] Fix bad_srat() to clear all state Andi Kleen
2009-07-22 5:24 ` [tip:x86/urgent] x86-64: " tip-bot for Andi Kleen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox