From c92fa10299ed58e911a8ad27b14a27cee79bd1af Mon Sep 17 00:00:00 2001 From: msaitoh Date: Wed, 27 May 2015 00:08:50 +0000 Subject: [PATCH] Add new bus clock for Airmont. --- sys/arch/x86/x86/intel_busclock.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/arch/x86/x86/intel_busclock.c b/sys/arch/x86/x86/intel_busclock.c index 14b1458c9c21..c74ada796b4d 100644 --- a/sys/arch/x86/x86/intel_busclock.c +++ b/sys/arch/x86/x86/intel_busclock.c @@ -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 -__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 #include @@ -276,7 +276,7 @@ p3_get_bus_clock(struct cpu_info *ci) "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 @@ p3_get_bus_clock(struct cpu_info *ci) 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);