Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/amlogic initialize amlogic cpufreq sysctls



details:   https://anonhg.NetBSD.org/src/rev/7f26247d29c4
branches:  trunk
changeset: 336555:7f26247d29c4
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Mar 05 23:44:30 2015 +0000

description:
initialize amlogic cpufreq sysctls

diffstat:

 sys/arch/evbarm/amlogic/amlogic_machdep.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 6081d3ad8f4c -r 7f26247d29c4 sys/arch/evbarm/amlogic/amlogic_machdep.c
--- a/sys/arch/evbarm/amlogic/amlogic_machdep.c Thu Mar 05 23:43:53 2015 +0000
+++ b/sys/arch/evbarm/amlogic/amlogic_machdep.c Thu Mar 05 23:44:30 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amlogic_machdep.c,v 1.13 2015/03/04 23:52:54 jmcneill Exp $ */
+/*     $NetBSD: amlogic_machdep.c,v 1.14 2015/03/05 23:44:30 jmcneill Exp $ */
 
 /*
  * Machine dependent functions for kernel setup for TI OSK5912 board.
@@ -125,7 +125,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amlogic_machdep.c,v 1.13 2015/03/04 23:52:54 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amlogic_machdep.c,v 1.14 2015/03/05 23:44:30 jmcneill Exp $");
 
 #include "opt_machdep.h"
 #include "opt_ddb.h"
@@ -505,6 +505,10 @@
                return;
        }
 
+       if (device_is_a(self, "cpu") && device_unit(self) == 0) {
+               amlogic_cpufreq_init();
+       }
+
        /*
         * We need to tell the A9 Global/Watchdog Timer
         * what frequency it runs at.



Home | Main Index | Thread Index | Old Index