From 21d69a144e134fd3260f89b5aaf730e9ffa0ff7c Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Mon, 9 Mar 2020 02:30:16 +0000 Subject: [PATCH] cpufreq_dt: Fix r358555 Before skipping the current cpu when trying to find the ones that have the same opp, record that this one have this opp. Reported by: mmel MFC after: 2 weeks X-MFC-With: r358555 --- sys/dev/cpufreq/cpufreq_dt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);