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 - use gettick directly, not via cpu...
details: https://anonhg.NetBSD.org/src/rev/bf0b4b83b649
branches: trunk
changeset: 786966:bf0b4b83b649
user: nakayama <nakayama%NetBSD.org@localhost>
date: Fri May 24 23:02:08 2013 +0000
description:
- use gettick directly, not via cpu_counter.
- bump timecounter quality of stick-counter so we prefer to use it.
diffstat:
sys/arch/sparc64/sparc64/clock.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (44 lines):
diff -r ebe0935f92b9 -r bf0b4b83b649 sys/arch/sparc64/sparc64/clock.c
--- a/sys/arch/sparc64/sparc64/clock.c Fri May 24 21:34:19 2013 +0000
+++ b/sys/arch/sparc64/sparc64/clock.c Fri May 24 23:02:08 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clock.c,v 1.107 2012/11/08 00:34:38 macallan Exp $ */
+/* $NetBSD: clock.c,v 1.108 2013/05/24 23:02:08 nakayama Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -55,7 +55,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.107 2012/11/08 00:34:38 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.108 2013/05/24 23:02:08 nakayama Exp $");
#include "opt_multiprocessor.h"
@@ -85,7 +85,6 @@
#include <machine/autoconf.h>
#include <machine/eeprom.h>
#include <machine/cpu.h>
-#include <machine/cpu_counter.h>
#include <sparc64/sparc64/intreg.h>
#include <sparc64/sparc64/timerreg.h>
@@ -161,7 +160,7 @@
~0u, /* counter_mask */
0, /* frequency - set at initialisation */
"stick-counter", /* name */
- 100, /* quality */
+ 200, /* quality */
0, /* private reference - UNUSED */
NULL /* next timecounter */
};
@@ -172,7 +171,7 @@
static u_int
tick_get_timecount(struct timecounter *tc)
{
- return cpu_counter();
+ return gettick();
}
static u_int
Home |
Main Index |
Thread Index |
Old Index