Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/fdt Disable setting cpufreq at boot for now



details:   https://anonhg.NetBSD.org/src/rev/1c8a04a0006c
branches:  trunk
changeset: 934011:1c8a04a0006c
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Jun 03 15:47:22 2020 +0000

description:
Disable setting cpufreq at boot for now

diffstat:

 sys/dev/fdt/cpufreq_dt.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 4864305fb025 -r 1c8a04a0006c sys/dev/fdt/cpufreq_dt.c
--- a/sys/dev/fdt/cpufreq_dt.c  Wed Jun 03 15:44:45 2020 +0000
+++ b/sys/dev/fdt/cpufreq_dt.c  Wed Jun 03 15:47:22 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpufreq_dt.c,v 1.15 2020/06/03 15:44:45 jmcneill Exp $ */
+/* $NetBSD: cpufreq_dt.c,v 1.16 2020/06/03 15:47:22 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpufreq_dt.c,v 1.15 2020/06/03 15:44:45 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpufreq_dt.c,v 1.16 2020/06/03 15:47:22 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -532,6 +532,7 @@
 
        cpufreq_dt_init_sysctl(sc);
 
+#if notyet
        if (sc->sc_nopp > 0) {
                struct cpufreq_dt_opp * const opp = &sc->sc_opp[0];
 
@@ -539,6 +540,7 @@
                    opp->freq_khz / 1000, opp->freq_khz % 1000, opp->voltage_uv);
                cpufreq_dt_set_rate(sc, opp->freq_khz);
        }
+#endif
 }
 
 static int



Home | Main Index | Thread Index | Old Index