diff options
author | njl <njl@FreeBSD.org> | 2005-03-31 06:11:04 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2005-03-31 06:11:04 +0000 |
commit | 54552bb9e68bf4efddc1406da85cf4322272a531 (patch) | |
tree | e8f0a10cb020d41d6e4fdae045e4840a7397e56a /sys/i386/cpufreq | |
parent | d7eac152b92d1a0750422caa5fb15699c5b13752 (diff) | |
download | FreeBSD-src-54552bb9e68bf4efddc1406da85cf4322272a531.zip FreeBSD-src-54552bb9e68bf4efddc1406da85cf4322272a531.tar.gz |
Remove check of numpst to allow more K8 variants to attach. The other
checks, including cpuid_is_k7(), will catch CPUs that really don't support
this method.
Submitted by: Bruno Ducrot
Tested by: Jari Kirma (kirma cs.hut.fi)
Diffstat (limited to 'sys/i386/cpufreq')
-rw-r--r-- | sys/i386/cpufreq/powernow.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/i386/cpufreq/powernow.c b/sys/i386/cpufreq/powernow.c index 6910342..b9d219f 100644 --- a/sys/i386/cpufreq/powernow.c +++ b/sys/i386/cpufreq/powernow.c @@ -636,7 +636,13 @@ pn_decode_pst(device_t dev) default: return (ENODEV); case 0x14: - if (sc->pn_type != PN8_TYPE || psb->numpst != 1) + /* + * We can't be picky about numpst since at least + * some systems have a value of 1 and some have 2. + * We trust that cpuid_is_k7() will be better at + * catching that we're on a K8 anyway. + */ + if (sc->pn_type != PN8_TYPE) return (EINVAL); sc->vst = psb->settlingtime; sc->rvo = PN8_PSB_TO_RVO(psb->res1), |