Date: Wed, 21 Jan 2009 20:57:54 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r187569 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb i386/cpufreq Message-ID: <200901212057.n0LKvsSP091156@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901212057.n0LKvsSP091156>