summaryrefslogtreecommitdiff
path: root/sys/arch/i386/pci/elan520.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/i386/pci/elan520.c')
-rw-r--r--sys/arch/i386/pci/elan520.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/arch/i386/pci/elan520.c b/sys/arch/i386/pci/elan520.c
index e380c841af6..8712aa03dea 100644
--- a/sys/arch/i386/pci/elan520.c
+++ b/sys/arch/i386/pci/elan520.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: elan520.c,v 1.13 2007/05/23 11:55:11 markus Exp $ */
+/* $OpenBSD: elan520.c,v 1.14 2007/11/28 17:05:09 tedu Exp $ */
/* $NetBSD: elan520.c,v 1.4 2002/10/02 05:47:15 thorpej Exp $ */
/*-
@@ -327,16 +327,12 @@ elansc_wdogctl_cb(void *self, int period)
void
elansc_update_cpuspeed(void)
{
-#ifdef I586_CPU
static const int elansc_mhz[] = { 0, 100, 133, 999 };
-#endif
uint8_t cpuctl;
cpuctl = bus_space_read_1(elansc->sc_memt, elansc->sc_memh,
MMCR_CPUCTL);
-#ifdef I586_CPU
cpuspeed = elansc_mhz[cpuctl & CPUCTL_CPU_CLK_SPD_MASK];
-#endif
}
void