Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/tegra initialize cpufreq subsystem



details:   https://anonhg.NetBSD.org/src/rev/9925a4d9d162
branches:  trunk
changeset: 338176:9925a4d9d162
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed May 13 11:07:02 2015 +0000

description:
initialize cpufreq subsystem

diffstat:

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

diffs (29 lines):

diff -r 7b1860b7936a -r 9925a4d9d162 sys/arch/evbarm/tegra/tegra_machdep.c
--- a/sys/arch/evbarm/tegra/tegra_machdep.c     Wed May 13 11:06:13 2015 +0000
+++ b/sys/arch/evbarm/tegra/tegra_machdep.c     Wed May 13 11:07:02 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tegra_machdep.c,v 1.13 2015/05/12 10:37:20 jmcneill Exp $ */
+/* $NetBSD: tegra_machdep.c,v 1.14 2015/05/13 11:07:02 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tegra_machdep.c,v 1.13 2015/05/12 10:37:20 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tegra_machdep.c,v 1.14 2015/05/13 11:07:02 jmcneill Exp $");
 
 #include "opt_tegra.h"
 #include "opt_machdep.h"
@@ -373,6 +373,10 @@
                return;
        }
 
+       if (device_is_a(self, "cpu") && device_unit(self) == 0) {
+               tegra_cpuinit();
+       }
+
 #ifdef BOARD_JETSONTK1
        if (device_is_a(self, "sdhc")
            && device_is_a(device_parent(self), "tegraio")) {



Home | Main Index | Thread Index | Old Index