diff --git a/sys/dev/cpufreq/cpufreq_dt.c b/sys/dev/cpufreq/cpufreq_dt.c index 17d17b6247f2..7ee9c9b2c763 100644 --- a/sys/dev/cpufreq/cpufreq_dt.c +++ b/sys/dev/cpufreq/cpufreq_dt.c @@ -519,7 +519,7 @@ cpufreq_dt_attach(device_t dev) continue; if (cpu == sc->cpu) { DEBUG(dev, "Skipping our cpu\n"); - cpu++; + CPU_SET(cpu++, &sc->cpus); continue; } DEBUG(dev, "Testing CPU %d\n", cpu);