Fix a detection issue caused by some Pre-ZEN AMD CPUs sometimes incorrectly reporting SMT as supported
This commit is contained in:
parent
3bc72c1fd4
commit
dce2cfb079
|
@ -166,7 +166,11 @@ void cpuid_init(void)
|
||||||
thread_per_core = 2;
|
thread_per_core = 2;
|
||||||
}
|
}
|
||||||
} else if (cpuid_info.flags.htt) {
|
} else if (cpuid_info.flags.htt) {
|
||||||
|
if (cpuid_info.version.extendedFamily >= 8) {
|
||||||
thread_per_core = 2;
|
thread_per_core = 2;
|
||||||
|
} else {
|
||||||
|
cpuid_info.flags.htt = 0; // Pre-ZEN never has SMT
|
||||||
|
}
|
||||||
}
|
}
|
||||||
cpuid_info.topology.core_count = cpuid_info.topology.thread_count / thread_per_core;
|
cpuid_info.topology.core_count = cpuid_info.topology.thread_count / thread_per_core;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue