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 Add new bus clock for Airmont.



details:   https://anonhg.NetBSD.org/src/rev/22100cc2fe08
branches:  trunk
changeset: 338478:22100cc2fe08
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed May 27 00:08:50 2015 +0000

description:
Add new bus clock for Airmont.

diffstat:

 sys/arch/x86/x86/intel_busclock.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r 9a4e5d106248 -r 22100cc2fe08 sys/arch/x86/x86/intel_busclock.c
--- a/sys/arch/x86/x86/intel_busclock.c Tue May 26 22:05:44 2015 +0000
+++ b/sys/arch/x86/x86/intel_busclock.c Wed May 27 00:08:50 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intel_busclock.c,v 1.22 2015/05/26 16:08:01 msaitoh Exp $      */
+/*     $NetBSD: intel_busclock.c,v 1.23 2015/05/27 00:08:50 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.22 2015/05/26 16:08:01 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intel_busclock.c,v 1.23 2015/05/27 00:08:50 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -276,7 +276,7 @@
                            "unable to determine bus speed");
                        goto print_msr;
                }
-               bus = (msr >> 0) & 0xf;
+               bus = (msr >> 0) & 0x1f;
                switch (bus) {
                case 0:
                        bus_clock =  8333;
@@ -314,6 +314,9 @@
                case 15:
                        bus_clock =  8888;
                        break;
+               case 20:
+                       bus_clock =  8750;
+                       break;
                default:
                        aprint_debug("%s: unknown Airmont FSB_FREQ value %d",
                            device_xname(ci->ci_dev), bus);



Home | Main Index | Thread Index | Old Index