summaryrefslogtreecommitdiffstats
path: root/perl-install/cpufreq.pm
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2010-11-27 23:27:03 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2010-11-27 23:27:03 +0000
commit43ca7ea270dfedd8ac8b02935ee2284e11a231be (patch)
treea56cc2ab96f70a5594aa2a01b595d1ccf811d0cd /perl-install/cpufreq.pm
parent7137c9dee54ce8a664e3ec95a7fa31698255af18 (diff)
downloaddrakx-43ca7ea270dfedd8ac8b02935ee2284e11a231be.tar
drakx-43ca7ea270dfedd8ac8b02935ee2284e11a231be.tar.gz
drakx-43ca7ea270dfedd8ac8b02935ee2284e11a231be.tar.bz2
drakx-43ca7ea270dfedd8ac8b02935ee2284e11a231be.tar.xz
drakx-43ca7ea270dfedd8ac8b02935ee2284e11a231be.zip
Add support for Athlon/Phenom II processors to cpufreq (#58477)
Diffstat (limited to 'perl-install/cpufreq.pm')
-rw-r--r--perl-install/cpufreq.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/perl-install/cpufreq.pm b/perl-install/cpufreq.pm
index 54710fd05..17a39b25e 100644
--- a/perl-install/cpufreq.pm
+++ b/perl-install/cpufreq.pm
@@ -109,9 +109,11 @@ sub probe_powernow_k7() {
sub probe_powernow_k8() {
any {
- get_vendor($_) eq "AMD" &&
- $_->{'cpu family'} == 15 &&
- ($_->{'power management'} =~ /\bfid\b/ || has_flag($_, 'fid')); # frequency ID control
+ get_vendor($_) eq "AMD" && (
+ ( $_->{'cpu family'} == 15 && ($_->{'power management'} =~ /\bfid\b/ || has_flag($_, 'fid')) ) # frequency ID control)
+ ||
+ ( $_->{'cpu family'} == 16 && ($_->{'power management'} =~ /\bhwpstate\b/ )) # support for Athlon/Phenom II processors (#58477))
+ );
} get_cpus();
}