diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2007-11-28 17:05:10 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2007-11-28 17:05:10 +0000 |
commit | 40089c4cad91e48d7c106fbd58b59ffb39242dbe (patch) | |
tree | 3a945b302739ca6429283b6efad61abff144d3e8 /sys/arch/i386/pci/elan520.c | |
parent | f014b270eafa4135ebacbeeffa0eb330d4c555b5 (diff) |
quite a bit of simplification by removing cpu classes.
also assume that 386 cpus are really unknown, and promote them to 486
instead of panic.
Diffstat (limited to 'sys/arch/i386/pci/elan520.c')
-rw-r--r-- | sys/arch/i386/pci/elan520.c | 6 |
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 |