Module Name: src Committed By: msaitoh Date: Wed Dec 17 03:39:02 UTC 2014
Modified Files: src/sys/arch/x86/x86: intel_busclock.c Log Message: - Round off some bus clock values. - Add 333.33MHz for Pentium 4. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/sys/arch/x86/x86/intel_busclock.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/x86/x86/intel_busclock.c diff -u src/sys/arch/x86/x86/intel_busclock.c:1.19 src/sys/arch/x86/x86/intel_busclock.c:1.20 --- src/sys/arch/x86/x86/intel_busclock.c:1.19 Fri Jul 25 14:34:22 2014 +++ src/sys/arch/x86/x86/intel_busclock.c Wed Dec 17 03:39:02 2014 @@ -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 @@ p4_get_bus_clock(struct cpu_info *ci) 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 @@ p4_get_bus_clock(struct cpu_info *ci) 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) "