Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 try to synchronize %tick registers ...



details:   https://anonhg.NetBSD.org/src/rev/98d2fd5a508c
branches:  trunk
changeset: 756693:98d2fd5a508c
user:      macallan <macallan%NetBSD.org@localhost>
date:      Wed Jul 28 21:34:57 2010 +0000

description:
try to synchronize %tick registers across CPUs during startup
this should take care of a lot of clock-gone-backwards problems I've seen on
my Blade 2500

diffstat:

 sys/arch/sparc64/sparc64/cpu.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 04adc4f3d1a7 -r 98d2fd5a508c sys/arch/sparc64/sparc64/cpu.c
--- a/sys/arch/sparc64/sparc64/cpu.c    Wed Jul 28 21:29:15 2010 +0000
+++ b/sys/arch/sparc64/sparc64/cpu.c    Wed Jul 28 21:34:57 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.95 2010/05/18 04:30:16 mrg Exp $ */
+/*     $NetBSD: cpu.c,v 1.96 2010/07/28 21:34:57 macallan Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -52,7 +52,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.95 2010/05/18 04:30:16 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.96 2010/07/28 21:34:57 macallan Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -441,6 +441,7 @@
                                break;
                        delay(10000);
                }
+               settick(0);
                setpstate(pstate);
 
                if (!CPUSET_HAS(cpus_active, ci->ci_index))



Home | Main Index | Thread Index | Old Index