summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorgwk <gwk@openbsd.org>2006-12-20 17:50:40 +0000
committergwk <gwk@openbsd.org>2006-12-20 17:50:40 +0000
commit21afdcd6ed57a989ec67a9660b84b603a69e1191 (patch)
treeb4a00a701c0a645e575dee32cb6734d3a3a2b9e0 /sys/dev
parentoops, name already used (diff)
downloadwireguard-openbsd-21afdcd6ed57a989ec67a9660b84b603a69e1191.tar.xz
wireguard-openbsd-21afdcd6ed57a989ec67a9660b84b603a69e1191.zip
"#ifdef is a tool of the weak!"
Rename pentium_mhz to cpuspeed which is consistant with amd64 making shared ACPI code less nasty. ok marco, deraadt
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpi/acpicpu.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/acpi/acpicpu.c b/sys/dev/acpi/acpicpu.c
index 0562f3b215f..3398c148c6d 100644
--- a/sys/dev/acpi/acpicpu.c
+++ b/sys/dev/acpi/acpicpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpicpu.c,v 1.13 2006/12/19 20:28:11 gwk Exp $ */
+/* $OpenBSD: acpicpu.c,v 1.14 2006/12/20 17:50:40 gwk Exp $ */
/*
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
*
@@ -313,10 +313,7 @@ acpicpu_setperf(int level) {
/* Did the transition succeed? */
if (status == pss->pss_status)
-#ifdef __i386__
- pentium_mhz = pss->pss_core_freq;
-#elif __amd64__
cpuspeed = pss->pss_core_freq;
-#endif
+
return;
}