summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorGordon Willem Klok <gwk@cvs.openbsd.org>2006-12-20 17:50:41 +0000
committerGordon Willem Klok <gwk@cvs.openbsd.org>2006-12-20 17:50:41 +0000
commite9bacb4e114afe21668eb3e0aeda327d7cd70ff9 (patch)
tree50fbaba4fe1bc45223f750c24043c056faefa177 /sys/dev/acpi
parent6a8ea32b55849ca9ef871833c18cb2d82434a8c7 (diff)
"#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/acpi')
-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;
}