projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3212fe1
)
[PATCH] i386: fix flat mode numa on a real numa system
author
keith mannthey
<
[email protected]
>
Mon, 25 Sep 2006 23:25:35 +0000
(16:25 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 26 Sep 2006 00:38:36 +0000
(17:38 -0700)
If there is only 1 node in the system cpus should think they are apart of
some other node.
If cases where a real numa system boots the Flat numa option make sure the
cpus don't claim to be apart on a non-existent node.
Signed-off-by: Keith Mannthey <
[email protected]
>
Cc: Andy Whitcroft <
[email protected]
>
Cc: Dave Hansen <
[email protected]
>
Cc: Andi Kleen <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/i386/kernel/smpboot.c
patch
|
blob
|
history
diff --git
a/arch/i386/kernel/smpboot.c
b/arch/i386/kernel/smpboot.c
index f948419c888a85905aa768f1aaeaf0c5378ca910..efe07990e7fca6e6508b8e5ceb54caa55bad47c8 100644
(file)
--- a/
arch/i386/kernel/smpboot.c
+++ b/
arch/i386/kernel/smpboot.c
@@
-642,9
+642,13
@@
static void map_cpu_to_logical_apicid(void)
{
int cpu = smp_processor_id();
int apicid = logical_smp_processor_id();
+ int node = apicid_to_node(apicid);
+
+ if (!node_online(node))
+ node = first_online_node;
cpu_2_logical_apicid[cpu] = apicid;
- map_cpu_to_node(cpu,
apicid_to_node(apicid)
);
+ map_cpu_to_node(cpu,
node
);
}
static void unmap_cpu_to_logical_apicid(int cpu)