diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-09-28 16:20:50 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-09-28 16:20:50 +0000 |
commit | fd941f534c4bf78e7956fab96f5378ed3908a360 (patch) | |
tree | d481db65b28a4abc4c0d9f1d5d415393bda765c3 /perl-install/cpufreq.pm | |
parent | f4e805e54111417027605523f3ab420895aa7f80 (diff) | |
download | drakx-backup-do-not-use-fd941f534c4bf78e7956fab96f5378ed3908a360.tar drakx-backup-do-not-use-fd941f534c4bf78e7956fab96f5378ed3908a360.tar.gz drakx-backup-do-not-use-fd941f534c4bf78e7956fab96f5378ed3908a360.tar.bz2 drakx-backup-do-not-use-fd941f534c4bf78e7956fab96f5378ed3908a360.tar.xz drakx-backup-do-not-use-fd941f534c4bf78e7956fab96f5378ed3908a360.zip |
add acpi-cpufreq support for some Intel CPUs (family 6 model 15) (from Herton Ronaldo Krzesinski, #30208)
Diffstat (limited to 'perl-install/cpufreq.pm')
-rw-r--r-- | perl-install/cpufreq.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/perl-install/cpufreq.pm b/perl-install/cpufreq.pm index 34862c015..8fa9b5a17 100644 --- a/perl-install/cpufreq.pm +++ b/perl-install/cpufreq.pm @@ -38,6 +38,15 @@ sub find_pci_device { any { my $dev = $_; any { $_->{vendor} == $dev->[0] && $_->{id} == $dev->[1] } pci_probe() } @devices; } +sub probe_acpi_cpufreq() { + any { + get_vendor($_) eq "Intel" && + has_flag($_, 'est') && + $_->{'cpu family'} == 6 && + $_->{model} == 15; + } get_cpus(); +} + sub probe_centrino() { any { get_vendor($_) eq "Intel" && @@ -114,6 +123,7 @@ sub probe_longrun() { } my @modules = ( + [ "acpi-cpufreq", \&probe_acpi_cpufreq ], # probe centrino first, it will get detected on ICH chipset and # speedstep-ich doesn't work with it [ "speedstep-centrino", \&probe_centrino ], |