svn commit: r187569 - in stable/7/sys: . contrib/pf dev/ath/ath_hal
dev/cxgb i386/cpufreq
Jung-uk Kim
jkim at FreeBSD.org
Wed Jan 21 12:57:56 PST 2009
Author: jkim
Date: Wed Jan 21 20:57:54 2009
New Revision: 187569
URL: http://svn.freebsd.org/changeset/base/187569
Log:
MFC: Use power management information for AMD CPUs from identcpu.c.
Modified:
stable/7/sys/ (props changed)
stable/7/sys/contrib/pf/ (props changed)
stable/7/sys/dev/ath/ath_hal/ (props changed)
stable/7/sys/dev/cxgb/ (props changed)
stable/7/sys/i386/cpufreq/powernow.c
Modified: stable/7/sys/i386/cpufreq/powernow.c
==============================================================================
--- stable/7/sys/i386/cpufreq/powernow.c Wed Jan 21 20:57:28 2009 (r187568)
+++ stable/7/sys/i386/cpufreq/powernow.c Wed Jan 21 20:57:54 2009 (r187569)
@@ -758,22 +758,6 @@ pn_decode_pst(device_t dev)
return (ENODEV);
}
-/*
- * TODO: this should be done in sys/ARCH/ARCH/identcpu.c
- */
-static int
-cpu_is_powernow_capable(void)
-{
- u_int regs[4];
-
- if (strcmp(cpu_vendor, "AuthenticAMD") != 0 ||
- cpu_exthigh < 0x80000007)
- return (FALSE);
-
- do_cpuid(0x80000007, regs);
- return (regs[3] & 0x6);
-}
-
static int
pn_decode_acpi(device_t dev, device_t perf_dev)
{
@@ -883,7 +867,7 @@ pn_identify(driver_t *driver, device_t p
{
device_t child;
- if (cpu_is_powernow_capable() == 0)
+ if ((amd_pminfo & (AMDPM_FID | AMDPM_VID)) == 0)
return;
switch (cpu_id & 0xf00) {
case 0x600:
More information about the svn-src-stable
mailing list