Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 - Round off some bus clock values.
details: https://anonhg.NetBSD.org/src/rev/32e7a1442e3e
branches: trunk
changeset: 334949:32e7a1442e3e
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Dec 17 03:39:02 2014 +0000
description:
- Round off some bus clock values.
- Add 333.33MHz for Pentium 4.
diffstat:
sys/arch/x86/x86/intel_busclock.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (39 lines):
diff -r 78d3e757ca29 -r 32e7a1442e3e sys/arch/x86/x86/intel_busclock.c
--- a/sys/arch/x86/x86/intel_busclock.c Wed Dec 17 01:49:08 2014 +0000
+++ b/sys/arch/x86/x86/intel_busclock.c Wed Dec 17 03:39:02 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intel_busclock.c,v 1.19 2014/07/25 14:34:22 msaitoh Exp $ */
+/* $NetBSD: intel_busclock.c,v 1.20 2014/12/17 03:39:02 msaitoh Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intel_busclock.c,v 1.19 2014/07/25 14:34:22 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intel_busclock.c,v 1.20 2014/12/17 03:39:02 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -316,7 +316,7 @@
switch (bus) {
case 0:
bus_clock = (CPUID_TO_MODEL(ci->ci_signature) == 2) ?
- 10000 : 26666;
+ 10000 : 26667;
break;
case 1:
bus_clock = 13333;
@@ -325,7 +325,10 @@
bus_clock = 20000;
break;
case 3:
- bus_clock = 16666;
+ bus_clock = 16667;
+ break;
+ case 4:
+ bus_clock = 33333;
break;
default:
aprint_debug("%s: unknown Pentium 4 (model %d) "
Home |
Main Index |
Thread Index |
Old Index