From 7c962201620bd44d7fbd74386e824a708fb4c6e3 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Mon, 9 Mar 2020 03:34:16 +0000 Subject: [PATCH] cpufreq: Unbreak build. --- sys/dev/cpufreq/cpufreq_dt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/cpufreq/cpufreq_dt.c b/sys/dev/cpufreq/cpufreq_dt.c index 7ee9c9b2c76..a4e1eab6cac 100644 --- a/sys/dev/cpufreq/cpufreq_dt.c +++ b/sys/dev/cpufreq/cpufreq_dt.c @@ -519,7 +519,8 @@ cpufreq_dt_attach(device_t dev) continue; if (cpu == sc->cpu) { DEBUG(dev, "Skipping our cpu\n"); - CPU_SET(cpu++, &sc->cpus); + CPU_SET(cpu, &sc->cpus); + cpu++; continue; } DEBUG(dev, "Testing CPU %d\n", cpu);