Author: manu
Date: Mon Mar  9 02:30:16 2020
New Revision: 358799
URL: https://svnweb.freebsd.org/changeset/base/358799

Log:
  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

Modified:
  head/sys/dev/cpufreq/cpufreq_dt.c

Modified: head/sys/dev/cpufreq/cpufreq_dt.c
==============================================================================
--- head/sys/dev/cpufreq/cpufreq_dt.c   Mon Mar  9 01:57:21 2020        
(r358798)
+++ head/sys/dev/cpufreq/cpufreq_dt.c   Mon Mar  9 02:30:16 2020        
(r358799)
@@ -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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to