Module Name:    src
Committed By:   matt
Date:           Wed Jun 29 05:56:31 UTC 2011

Modified Files:
        src/sys/arch/powerpc/booke: e500_timer.c

Log Message:
Only attach tc on primary cpu.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/powerpc/booke/e500_timer.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/powerpc/booke/e500_timer.c
diff -u src/sys/arch/powerpc/booke/e500_timer.c:1.3 src/sys/arch/powerpc/booke/e500_timer.c:1.4
--- src/sys/arch/powerpc/booke/e500_timer.c:1.3	Sat Jun 25 00:07:10 2011
+++ src/sys/arch/powerpc/booke/e500_timer.c	Wed Jun 29 05:56:31 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: e500_timer.c,v 1.3 2011/06/25 00:07:10 matt Exp $	*/
+/*	$NetBSD: e500_timer.c,v 1.4 2011/06/29 05:56:31 matt 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.3 2011/06/25 00:07:10 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: e500_timer.c,v 1.4 2011/06/29 05:56:31 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -53,9 +53,6 @@
 #include <powerpc/booke/e500var.h>
 #include <powerpc/booke/openpicreg.h>
 
-/*
- * Initially we assume a processor with a bus frequency of 12.5 MHz.
- */
 static u_long ns_per_tick;
 
 static void init_ppcbooke_tc(void);
@@ -174,7 +171,8 @@
 	openpic_write(cpu, cpu->cpu_clock_gtbcr,
 	     cpu->cpu_ticks_per_clock_intr);
 
-	init_ppcbooke_tc();
+	if (CPU_IS_PRIMARY(ci))
+		init_ppcbooke_tc();
 }
 
 void

Reply via email to