Skip to content

Commit 4f89de1

Browse files
committed
x86: enable CPUID 0x1f leaf (intel v2 topo enumeration) on Zhaoxin
Tested on KH-4000, we get package info there now. Signed-off-by: Brice Goglin <[email protected]>
1 parent 34ad3ef commit 4f89de1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hwloc/topology-x86.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ static void look_proc(struct hwloc_backend *backend, struct procinfo *infos, uns
776776
*/
777777
read_extended_topo(data, infos, 0x80000026, src_cpuiddump);
778778

779-
} else if ((cpuid_type == intel) && highest_cpuid >= 0x1f) {
779+
} else if ((cpuid_type == intel || cpuid_type == zhaoxin) && highest_cpuid >= 0x1f) {
780780
/* Get package/die/module/tile/core/thread information from cpuid 0x1f
781781
* (Intel v2 Extended Topology Enumeration)
782782
*/

0 commit comments

Comments
 (0)