summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorjohns <johns@cvs.openbsd.org>1998-03-04 19:19:29 +0000
committerjohns <johns@cvs.openbsd.org>1998-03-04 19:19:29 +0000
commitc93ddd4f040f96828dcd4ba63d24fab775665c91 (patch)
treea342d7c951f34998196a2d38ef55a1cad1731410 /sys/arch/sparc
parentfe5784cc34fb22ec5d29e04e43722331aeb4023d (diff)
Improved error/warning messages for clock/statclock rate stuff, added
missing mesg for oclock on 4/100 and 4/200..
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/sparc/clock.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/sparc/sparc/clock.c b/sys/arch/sparc/sparc/clock.c
index 39e6e2cc533..f8c0340ac80 100644
--- a/sys/arch/sparc/sparc/clock.c
+++ b/sys/arch/sparc/sparc/clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock.c,v 1.9 1997/11/11 10:03:03 niklas Exp $ */
+/* $OpenBSD: clock.c,v 1.10 1998/03/04 19:19:28 johns Exp $ */
/* $NetBSD: clock.c,v 1.52 1997/05/24 20:16:05 pk Exp $ */
/*
@@ -612,6 +612,10 @@ cpu_initclocks()
if (oldclk) {
int dummy;
+ if (hz != 100) {
+ printf("oclock0: cannot get %d Hz clock; using 100 Hz\n", hz);
+ }
+
profhz = hz = 100;
tick = 1000000 / hz;
@@ -628,14 +632,14 @@ cpu_initclocks()
#endif /* SUN4 */
if (1000000 % hz) {
- printf("cannot get %d Hz clock; using 100 Hz\n", hz);
+ printf("clock0: cannot get %d Hz clock; using 100 Hz\n", hz);
hz = 100;
tick = 1000000 / hz;
}
if (stathz == 0)
stathz = hz;
if (1000000 % stathz) {
- printf("cannot get %d Hz statclock; using 100 Hz\n", stathz);
+ printf("clock0: cannot get %d Hz statclock; using 100 Hz\n", stathz);
stathz = 100;
}
profhz = stathz; /* always */