Module Name:    src
Committed By:   jmcneill
Date:           Thu Mar  5 23:44:30 UTC 2015

Modified Files:
        src/sys/arch/evbarm/amlogic: amlogic_machdep.c

Log Message:
initialize amlogic cpufreq sysctls


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/evbarm/amlogic/amlogic_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbarm/amlogic/amlogic_machdep.c
diff -u src/sys/arch/evbarm/amlogic/amlogic_machdep.c:1.13 src/sys/arch/evbarm/amlogic/amlogic_machdep.c:1.14
--- src/sys/arch/evbarm/amlogic/amlogic_machdep.c:1.13	Wed Mar  4 23:52:54 2015
+++ src/sys/arch/evbarm/amlogic/amlogic_machdep.c	Thu Mar  5 23:44:30 2015
@@ -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 @@ amlogic_device_register(device_t self, v
 		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.

Reply via email to