diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-01-11 07:12:08 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-01-11 07:12:08 +0000 |
commit | 37a9506efc2905882c0557b16b6a5e3c54a2bb57 (patch) | |
tree | b73769d674fe6bf505c366ad7ca41bba86dc8b62 /sys/arch/i386 | |
parent | 68fa9cdba1a2bfbc4241058663eb919a281d9c2b (diff) |
Add additional values for the Atom FSB_FREQ bus clock MSR now
Intel actually document it publically.
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/i386/machdep.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c index 0f32126e5f8..d81f5b4501c 100644 --- a/sys/arch/i386/i386/machdep.c +++ b/sys/arch/i386/i386/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.442 2008/12/18 14:17:28 kurt Exp $ */ +/* $OpenBSD: machdep.c,v 1.443 2009/01/11 07:12:07 jsg Exp $ */ /* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */ /*- @@ -2023,9 +2023,15 @@ p3_get_bus_clock(struct cpu_info *ci) msr = rdmsr(MSR_FSB_FREQ); bus = (msr >> 0) & 0x7; switch (bus) { + case 5: + bus_clock = BUS100; + break; case 1: bus_clock = BUS133; break; + case 3: + bus_clock = BUS166; + break; default: printf("%s: unknown Atom FSB_FREQ value %d", ci->ci_dev.dv_xname, bus); |