summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2011-01-27 21:27:45 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2011-01-27 21:27:45 +0000
commit443de5ee056ec38c000a0b9f35b7fb09c849cd96 (patch)
tree1900cbc3671063bdad3fb7a41ee05bf500a8087d
parent1db1d4f7a84c90e6f40862e92aba420b3f39e25d (diff)
Atom uses the same value for bus clock 200 MHz as Core, though
this is not documented by Intel. tested by henning on d525
-rw-r--r--sys/arch/amd64/amd64/est.c5
-rw-r--r--sys/arch/i386/i386/machdep.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/est.c b/sys/arch/amd64/amd64/est.c
index 7ac4af733b7..818fda5cada 100644
--- a/sys/arch/amd64/amd64/est.c
+++ b/sys/arch/amd64/amd64/est.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: est.c,v 1.22 2010/12/29 18:10:17 kettenis Exp $ */
+/* $OpenBSD: est.c,v 1.23 2011/01/27 21:27:44 jsg Exp $ */
/*
* Copyright (c) 2003 Michael Eriksson.
* All rights reserved.
@@ -210,6 +210,9 @@ p3_get_bus_clock(struct cpu_info *ci)
case 3:
bus_clock = BUS166;
break;
+ case 2:
+ bus_clock = BUS200:
+ break;
default:
printf("%s: unknown Atom FSB_FREQ value %d",
ci->ci_dev->dv_xname, bus);
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index c9009d61036..ae0e8dc243a 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.486 2010/12/29 18:10:17 kettenis Exp $ */
+/* $OpenBSD: machdep.c,v 1.487 2011/01/27 21:27:44 jsg Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -2069,6 +2069,9 @@ p3_get_bus_clock(struct cpu_info *ci)
case 3:
bus_clock = BUS166;
break;
+ case 2:
+ bus_clock = BUS200;
+ break;
default:
printf("%s: unknown Atom FSB_FREQ value %d",
ci->ci_dev.dv_xname, bus);