diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c index b09bc50ba914..4f3b51de2765 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++; }