summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_smp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/subr_smp.c')
-rw-r--r--sys/kern/subr_smp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c
index b09bc50..4f3b51d 100644
--- a/sys/kern/subr_smp.c
+++ b/sys/kern/subr_smp.c
@@ -1029,8 +1029,8 @@ topo_set_pu_id(struct topo_node *node, cpuid_t id)
node->subtype = 1;
while ((node = node->parent) != NULL) {
- if (CPU_ISSET(id, &node->cpuset))
- break;
+ KASSERT(!CPU_ISSET(id, &node->cpuset),
+ ("logical ID %u is already set in node %p", id, node));
CPU_SET(id, &node->cpuset);
node->cpu_count++;
}
OpenPOWER on IntegriCloud