Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/booke fix build failure with lockstat.



details:   https://anonhg.NetBSD.org/src/rev/21ca148c75e4
branches:  trunk
changeset: 335684:21ca148c75e4
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Wed Jan 21 06:11:39 2015 +0000

description:
fix build failure with lockstat.

diffstat:

 sys/arch/powerpc/booke/e500_timer.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r cc5b67d839f9 -r 21ca148c75e4 sys/arch/powerpc/booke/e500_timer.c
--- a/sys/arch/powerpc/booke/e500_timer.c       Wed Jan 21 02:47:39 2015 +0000
+++ b/sys/arch/powerpc/booke/e500_timer.c       Wed Jan 21 06:11:39 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: e500_timer.c,v 1.5 2014/07/29 23:35:00 joerg Exp $     */
+/*     $NetBSD: e500_timer.c,v 1.6 2015/01/21 06:11:39 nonaka Exp $    */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: e500_timer.c,v 1.5 2014/07/29 23:35:00 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: e500_timer.c,v 1.6 2015/01/21 06:11:39 nonaka Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -53,6 +53,7 @@
 #include <powerpc/booke/e500var.h>
 #include <powerpc/booke/openpicreg.h>
 
+uint32_t ticks_per_sec;
 static u_long ns_per_tick;
 
 static void init_ppcbooke_tc(void);
@@ -173,6 +174,7 @@
        struct cpu_info * const ci = curcpu();
 
        ci->ci_data.cpu_cc_freq = board_info_get_number("timebase-frequency");
+       ticks_per_sec = (uint32_t)ci->ci_data.cpu_cc_freq;
        ns_per_tick = 1000000000 / (u_int)ci->ci_data.cpu_cc_freq;
 }
 



Home | Main Index | Thread Index | Old Index