projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86/Centaur: Report correct CPU/cache topology
[linux-2.6-block.git]
/
arch
/
x86
/
kernel
/
cpu
/
centaur.c
diff --git
a/arch/x86/kernel/cpu/centaur.c
b/arch/x86/kernel/cpu/centaur.c
index 80d5110481eceb740e7fd7596523aa5d9ba05bd0..c265494234e63c9d3a219263c1df450ed7c982d3 100644
(file)
--- a/
arch/x86/kernel/cpu/centaur.c
+++ b/
arch/x86/kernel/cpu/centaur.c
@@
-160,6
+160,11
@@
static void init_centaur(struct cpuinfo_x86 *c)
clear_cpu_cap(c, 0*32+31);
#endif
early_init_centaur(c);
+ init_intel_cacheinfo(c);
+ c->x86_max_cores = detect_num_cpu_cores(c);
+#ifdef CONFIG_X86_32
+ detect_ht(c);
+#endif
if (c->cpuid_level > 9) {
unsigned int eax = cpuid_eax(10);