From 3a6c410df911301f4a26ab06fa178d3088aaffd5 Mon Sep 17 00:00:00 2001 From: tsutsui Date: Sat, 7 Jul 2007 17:08:15 +0000 Subject: [PATCH] Don't update hz by the hardware RPB field. Leave it default HZ since we always use 1024Hz in alpha/mcclock.c. --- sys/arch/alpha/alpha/machdep.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/sys/arch/alpha/alpha/machdep.c b/sys/arch/alpha/alpha/machdep.c index a6ecd8fb1cc2..1364f87be95c 100644 --- a/sys/arch/alpha/alpha/machdep.c +++ b/sys/arch/alpha/alpha/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.297 2007/05/17 14:51:12 yamt Exp $ */ +/* $NetBSD: machdep.c,v 1.298 2007/07/07 17:08:15 tsutsui Exp $ */ /*- * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc. @@ -75,7 +75,7 @@ #include /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.297 2007/05/17 14:51:12 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.298 2007/07/07 17:08:15 tsutsui Exp $"); #include #include @@ -780,17 +780,14 @@ nobootinfo: #endif } - /* - * Figure out our clock frequency, from RPB fields. - */ - hz = hwrpb->rpb_intr_freq >> 12; - if (!(60 <= hz && hz <= 10240)) { - hz = 1024; #ifdef DIAGNOSTIC + /* + * Check our clock frequency, from RPB fields. + */ + if ((hwrpb->rpb_intr_freq >> 12) != 1024) printf("WARNING: unbelievable rpb_intr_freq: %ld (%d hz)\n", hwrpb->rpb_intr_freq, hz); #endif - } } void