android_kernel_oneplus_msm8998/arch/i386/kernel/cpu/cpufreq
Rafal Bilski 52a2638bff Longhaul: add auto enabled "revid_errata" option
VIA C3 Ezra-T has RevisionID equal to 1, but it needs RevisionKey to be 0
or CPU will ignore new frequency and will continue to work at old
frequency.  New "revid_errata" option will force RevisionKey to be set to
0, whatever RevisionID is.

Additionaly "Longhaul" will not silently ignore unsuccessful transition.
It will try to check if "revid_errata" or "disable_acpi_c3" options need to
be enabled for this processor/system.

Same for Longhaul ver.  2 support.  It will be disabled if none of above
options will work.

 Best case scenario (with patch apllied and v2 enabled):
 longhaul: VIA C3 'Ezra' [C5C] CPU detected.  Longhaul v2 supported.
 longhaul: Using northbridge support.
 longhaul: VRM 8.5
 longhaul: Max VID=1.350  Min VID=1.050, 13 possible voltage scales
 longhaul: f: 300000 kHz, index: 0, vid: 1050 mV
 [...]
 longhaul: Voltage scaling enabled.
 Worst case scenario:
 longhaul: VIA C3 'Ezra-T' [C5M] CPU detected.  Powersaver supported.
 longhaul: Using northbridge support.
 longhaul: Using ACPI support.
 longhaul: VRM 8.5
 longhaul: Claims to support voltage scaling but min & max are both 1.250. Voltage scaling disabled
 longhaul: Failed to set requested frequency!
 longhaul: Enabling "Ignore Revision ID" option.
 longhaul: Failed to set requested frequency!
 longhaul: Disabling ACPI C3 support.
 longhaul: Disabling "Ignore Revision ID" option.
 longhaul: Failed to set requested frequency!
 longhaul: Enabling "Ignore Revision ID" option.

[akpm@linux-foundation.org: coding-style cleanups]
Signed-off-by: Rafal Bilski <rafalbilski@interia.pl>
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-07 16:28:43 -07:00
..
acpi-cpufreq.c acpi-cpufreq: Fix some x86/x86-64 acpi-cpufreq driver issues 2007-08-07 18:40:30 -04:00
cpufreq-nforce2.c PCI: Change all drivers to use pci_device->revision 2007-07-11 16:02:10 -07: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 x86: Replace NSC/Cyrix specific chipset access macros by inlined functions. 2007-07-22 11:03:38 -07:00
Kconfig X86_POWERNOW_K8_ACPI must depend on ACPI 2007-07-26 11:35:17 -07:00
longhaul.c Longhaul: add auto enabled "revid_errata" option 2007-10-07 16:28:43 -07:00
longhaul.h [CPUFREQ] Longhaul - Remove duplicate multipliers 2007-05-29 16:56:40 -04: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] Fix typos in powernow-k8 printk's. 2007-07-13 01:34:10 -04:00
powernow-k8.h [CPUFREQ] Correct revision mask for powernow-k8 2007-05-14 18:27:29 -04:00
sc520_freq.c Revert "[CPUFREQ] constify cpufreq_driver where possible." 2007-02-26 14:55:48 -08:00
speedstep-centrino.c [CPUFREQ] the overdue removal of X86_SPEEDSTEP_CENTRINO_ACPI 2007-07-13 01:29:51 -04:00
speedstep-ich.c PCI: Change all drivers to use pci_device->revision 2007-07-11 16:02:10 -07: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