Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/rockchip dont hard-code cpu_cc_freq
details: https://anonhg.NetBSD.org/src/rev/30f2d2d84f16
branches: trunk
changeset: 335131:30f2d2d84f16
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Dec 27 02:40:23 2014 +0000
description:
dont hard-code cpu_cc_freq
diffstat:
sys/arch/evbarm/rockchip/rockchip_machdep.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 32af5f30a160 -r 30f2d2d84f16 sys/arch/evbarm/rockchip/rockchip_machdep.c
--- a/sys/arch/evbarm/rockchip/rockchip_machdep.c Sat Dec 27 02:12:29 2014 +0000
+++ b/sys/arch/evbarm/rockchip/rockchip_machdep.c Sat Dec 27 02:40:23 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rockchip_machdep.c,v 1.3 2014/12/27 01:21:02 jmcneill Exp $ */
+/* $NetBSD: rockchip_machdep.c,v 1.4 2014/12/27 02:40:23 jmcneill Exp $ */
/*
* Machine dependent functions for kernel setup for TI OSK5912 board.
@@ -125,7 +125,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rockchip_machdep.c,v 1.3 2014/12/27 01:21:02 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rockchip_machdep.c,v 1.4 2014/12/27 02:40:23 jmcneill Exp $");
#include "opt_machdep.h"
#include "opt_ddb.h"
@@ -349,7 +349,7 @@
if (set_cpufuncs())
panic("cpu not recognized!");
-curcpu()->ci_data.cpu_cc_freq = 1600000000; /* XXX hack XXX */
+ curcpu()->ci_data.cpu_cc_freq = rockchip_cpu_get_rate();
init_clocks();
Home |
Main Index |
Thread Index |
Old Index