projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5bcb56
)
[PATCH] x86-64: Don't enable NUMA for a single node in K8 NUMA scanning
author
Andi Kleen
<ak@suse.de>
Wed, 2 May 2007 17:27:21 +0000
(19:27 +0200)
committer
Andi Kleen
<andi@basil.nowhere.org>
Wed, 2 May 2007 17:27:21 +0000
(19:27 +0200)
This was supposed to see the full memory on a ASUS A8SX motherboard
with 4GB RAM where the northbridge reports less memory, but it didn't
help there. But it's a reasonable change so let's include it anyways.
Signed-off-by: Andi Kleen <ak@suse.de>
arch/x86_64/mm/k8topology.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86_64/mm/k8topology.c
b/arch/x86_64/mm/k8topology.c
index 60e860e5ef4c44767fd7007c7858d7d9f9ae183c..f983c75825d09f67a3cbb833d25165d80a5cd183 100644
(file)
--- a/
arch/x86_64/mm/k8topology.c
+++ b/
arch/x86_64/mm/k8topology.c
@@
-62,6
+62,8
@@
int __init k8_scan_nodes(unsigned long start, unsigned long end)
reg = read_pci_config(0, nb, 0, 0x60);
numnodes = ((reg >> 4) & 0xF) + 1;
+ if (numnodes <= 1)
+ return -1;
printk(KERN_INFO "Number of nodes %d\n", numnodes);