summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/amd64/amd64/identcpu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/identcpu.c b/sys/arch/amd64/amd64/identcpu.c
index a212651fcf5..7641ff7fe97 100644
--- a/sys/arch/amd64/amd64/identcpu.c
+++ b/sys/arch/amd64/amd64/identcpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: identcpu.c,v 1.109 2018/10/04 05:00:40 guenther Exp $ */
+/* $OpenBSD: identcpu.c,v 1.110 2018/10/20 20:40:54 kettenis Exp $ */
/* $NetBSD: identcpu.c,v 1.1 2003/04/26 18:39:28 fvdl Exp $ */
/*
@@ -835,7 +835,8 @@ cpu_topology(struct cpu_info *ci)
ci->ci_smt_id = 0;
CPU_INFO_FOREACH(cii, ci_other) {
if (ci != ci_other &&
- ci_other->ci_core_id == ci->ci_core_id)
+ ci_other->ci_core_id == ci->ci_core_id &&
+ ci_other->ci_pkg_id == ci->ci_pkg_id)
ci->ci_smt_id++;
}
} else {