Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/marvell Initialize cpu_cc_freq with our CPU speed.



details:   https://anonhg.NetBSD.org/src/rev/4524aaa5a755
branches:  trunk
changeset: 795284:4524aaa5a755
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Apr 05 22:41:50 2014 +0000

description:
Initialize cpu_cc_freq with our CPU speed.

diffstat:

 sys/arch/arm/marvell/armadaxp.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 979deb40f8bb -r 4524aaa5a755 sys/arch/arm/marvell/armadaxp.c
--- a/sys/arch/arm/marvell/armadaxp.c   Sat Apr 05 22:36:18 2014 +0000
+++ b/sys/arch/arm/marvell/armadaxp.c   Sat Apr 05 22:41:50 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: armadaxp.c,v 1.7 2014/03/15 10:54:40 kiyohara Exp $    */
+/*     $NetBSD: armadaxp.c,v 1.8 2014/04/05 22:41:50 matt Exp $        */
 /*******************************************************************************
 Copyright (C) Marvell International Ltd. and its affiliates
 
@@ -37,7 +37,7 @@
 *******************************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: armadaxp.c,v 1.7 2014/03/15 10:54:40 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: armadaxp.c,v 1.8 2014/04/05 22:41:50 matt Exp $");
 
 #define _INTR_PRIVATE
 
@@ -369,6 +369,8 @@
 
        mvPclk *= 1000000;
        mvSysclk *= 1000000;
+
+       curcpu()->ci_data.cpu_cc_freq = mvPclk;
 }
 
 void



Home | Main Index | Thread Index | Old Index