Source-Changes-HG archive

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

[src/simonb-timecounters]: src/sys/arch/sparc/sparc use TOY chip time instead...



details:   https://anonhg.NetBSD.org/src/rev/582a332bfbba
branches:  simonb-timecounters
changeset: 587897:582a332bfbba
user:      kardel <kardel%NetBSD.org@localhost>
date:      Tue May 30 21:16:33 2006 +0000

description:
use TOY chip time instead of fs time when available

diffstat:

 sys/arch/sparc/sparc/clock.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r aa7c46b687f8 -r 582a332bfbba sys/arch/sparc/sparc/clock.c
--- a/sys/arch/sparc/sparc/clock.c      Sun May 28 09:32:36 2006 +0000
+++ b/sys/arch/sparc/sparc/clock.c      Tue May 30 21:16:33 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clock.c,v 1.96.6.1 2006/05/27 22:49:52 kardel Exp $ */
+/*     $NetBSD: clock.c,v 1.96.6.2 2006/05/30 21:16:33 kardel Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -88,7 +88,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.96.6.1 2006/05/27 22:49:52 kardel Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.96.6.2 2006/05/30 21:16:33 kardel Exp $");
 
 #include "opt_sparc_arch.h"
 
@@ -261,8 +261,8 @@
 
                sparc_clock_time_is_ok = 1;
 
-               ts.tv_sec = base;
-               ts.tv_nsec = 0;
+               ts.tv_sec = time.tv_sec;
+               ts.tv_nsec = time.tv_usec * 1000;
                tc_setclock(&ts);
 
                if (deltat < 0)



Home | Main Index | Thread Index | Old Index