diff options
author | njl <njl@FreeBSD.org> | 2005-10-23 19:38:06 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2005-10-23 19:38:06 +0000 |
commit | c22f36215286eaca7767c1116a2fe2d8616b8c9c (patch) | |
tree | c29f4af25cc9366f1266790df35bb0aa2872af74 /sys/i386 | |
parent | 5f05cfc6909a30bb5364a1868efc6609c7b7cbdb (diff) | |
download | FreeBSD-src-c22f36215286eaca7767c1116a2fe2d8616b8c9c.zip FreeBSD-src-c22f36215286eaca7767c1116a2fe2d8616b8c9c.tar.gz |
Like acpi_throttle, set frequency to 100% in attach. Some BIOSen may set
this value lower, making the system quite slow after booting.
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/cpufreq/p4tcc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/i386/cpufreq/p4tcc.c b/sys/i386/cpufreq/p4tcc.c index 44c1d96..7a2eea1 100644 --- a/sys/i386/cpufreq/p4tcc.c +++ b/sys/i386/cpufreq/p4tcc.c @@ -150,6 +150,7 @@ static int p4tcc_attach(device_t dev) { struct p4tcc_softc *sc; + struct cf_setting set; sc = device_get_softc(dev); sc->dev = dev; @@ -188,6 +189,13 @@ p4tcc_attach(device_t dev) } sc->lowest_val = TCC_NUM_SETTINGS - sc->set_count + 1; + /* + * Before we finish attach, switch to 100%. It's possible the BIOS + * set us to a lower rate. The user can override this after boot. + */ + set.freq = 10000; + p4tcc_set(dev, &set); + cpufreq_register(dev); return (0); } |