linux/arch/i386/kernel/cpu/cpufreq
Daniel Drake dc2585eb47 [CPUFREQ] powernow-k7: fix MHz rounding issue with perflib
When the PST tables are broken, powernow-k7 uses ACPI's processor_perflib to
deduce the available frequency multipliers from the _PSS tables.

Upon frequency change, processor_perflib performs some verification on the
frequency (checks that it's within allowable bounds).

powernow-k7 deals with absolute frequencies in KHz, whereas perflib only
deals with MHz values. When performing the above verification, perflib
multiplies the MHz values by 1000 to obtain the KHz value.

We then end up with situations like the following:
 - powernow-k7 multiplies the multiplier by the FSB, and obtains a value
   such as 1266768 KHz
 - perflib belives the same state has frequency of 1266 MHz
 - acpi_processor_ppc_notifier calls cpufreq_verify_within_limits to verify
   that 1266768 is in the allowable range of 0 to 1266000 (i.e. 1266 * 1000)
 - it's not, so that frequency is rejected
 - the maximum CPU frequency is not reachable

This patch solves the problem by rounding up the MHz values stored in perflib's
tables. Additionally it corrects a broken URL.

It also fixes http://bugzilla.kernel.org/show_bug.cgi?id=8255 although this
case is a bit different: the frequencies in the _PSS tables are wildly wrong,
but we get better results if we force ACPI to respect the fsb * multiplier
calculations (even though it seems that the multiplier values aren't entirely
correct either).

Signed-off-by: Daniel Drake <dsd@gentoo.org>
Signed-off-by: Dave Jones <davej@redhat.com>
2007-05-13 17:25:13 -04:00
..
acpi-cpufreq.c [CPUFREQ] Uninitialized use of cmd.val in arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c:acpi_cpufreq_target() 2007-01-02 23:38:39 -05:00
cpufreq-nforce2.c Revert "[CPUFREQ] constify cpufreq_driver where possible." 2007-02-26 14:55:48 -08:00
e_powersaver.c Revert "[CPUFREQ] constify cpufreq_driver where possible." 2007-02-26 14:55:48 -08:00
elanfreq.c Revert "[CPUFREQ] constify cpufreq_driver where possible." 2007-02-26 14:55:48 -08:00
gx-suspmod.c Revert "[CPUFREQ] constify cpufreq_driver where possible." 2007-02-26 14:55:48 -08:00
Kconfig [CPUFREQ] Revert default on deprecated config X86_SPEEDSTEP_CENTRINO_ACPI 2007-02-20 14:23:43 -05:00
longhaul.c [CPUFREQ] Longhaul - Revert Longhaul ver. 2 2007-04-26 14:32:03 -04:00
longhaul.h [CPUFREQ] constify some data tables. 2007-02-22 19:11:16 -05:00
longrun.c Revert "[CPUFREQ] constify cpufreq_driver where possible." 2007-02-26 14:55:48 -08:00
Makefile [CPUFREQ] Enhanced PowerSaver driver 2007-02-10 20:01:47 -05:00
p4-clockmod.c [CPUFREQ] p4-clockmod: switch to rdmsr_on_cpu/wrmsr_on_cpu 2007-04-26 14:32:02 -04:00
powernow-k6.c Revert "[CPUFREQ] constify cpufreq_driver where possible." 2007-02-26 14:55:48 -08:00
powernow-k7.c [CPUFREQ] powernow-k7: fix MHz rounding issue with perflib 2007-05-13 17:25:13 -04:00
powernow-k7.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
powernow-k8.c [CPUFREQ] Support rev H AMD64s in powernow-k8 2007-05-13 11:55:14 -04:00
powernow-k8.h [CPUFREQ] Support rev H AMD64s in powernow-k8 2007-05-13 11:55:14 -04:00
sc520_freq.c Revert "[CPUFREQ] constify cpufreq_driver where possible." 2007-02-26 14:55:48 -08:00
speedstep-centrino.c Fix preemption warnings in speedstep-centrino.c 2007-04-26 14:32:02 -04:00
speedstep-ich.c Revert "[CPUFREQ] constify cpufreq_driver where possible." 2007-02-26 14:55:48 -08:00
speedstep-lib.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
speedstep-lib.h [CPUFREQ] p4-clockmod: add more CPUs 2006-11-06 19:17:40 -05:00
speedstep-smi.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00