Skip to contentSkip to conversation

speedstep-centrino: use information in ACPI tables to determine valid CPU frequency and voltage pairs

PATCH In review Dominik Brodowski 1 participant 1 message Feb 20, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 speedstep-centrino: use information in ACPI tables to determine valid CPU frequency and voltage pairs

Use ACPI _PSS data to determine valid frequency and voltage pairs on Enhanced SpeedStep-capable processors. An original form of such ACPI-PentiumM-cpufreq interaction was sent to the cpufreq list by David Moore in June last year; the attached patch utilizes his code to set _PDC.

The new ACPI "P-States library" is utilized to obtain the correct frequency and MSR value pairs for the speedstep-centrino driver. Only if no such proper table exists (!CONFIG_ACPI, broken ACPI tables, etc.), fall back to the existing hard-coded table.

If anyone has a better idea for the Kconfig section, please tell me so.

 arch/i386/kernel/cpu/cpufreq/Kconfig              |   15 ++
 arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c |  137 +++++++++++++++++++++-
 2 files changed, 147 insertions(+), 5 deletions(-)
arch/i386/kernel/cpu/cpufreq/Kconfig +15 -0
diff -ruN linux-original/arch/i386/kernel/cpu/cpufreq/Kconfig linux/arch/i386/kernel/cpu/cpufreq/Kconfig
@@ -120,6 +120,21 @@
 	  
 	  If in doubt, say N.
 
+config X86_SPEEDSTEP_CENTRINO_TABLE
+	bool
+	depends on X86_SPEEDSTEP_CENTRINO
+	default y
+
+config X86_SPEEDSTEP_CENTRINO_ACPI
+	bool "Use ACPI tables to decode valid frequency/voltage pairs (EXPERIMENTAL)"
+	depends on EXPERIMENTAL
+	depends on ((X86_SPEEDSTEP_CENTRINO = "m" && ACPI_PROCESSOR) || (X86_SPEEDSTEP_CENTRINO = "y" && ACPI_PROCESSOR = "y"))
+	help
+	  Use primarily the information provided in the BIOS ACPI tables
+	  to determine valid CPU frequency and voltage pairings.
+
+	  If in doubt, say Y.
+
 config X86_SPEEDSTEP_ICH
 	tristate "Intel Speedstep on ICH-M chipsets (ioport interface)"
 	depends on CPU_FREQ_TABLE
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c +132 -5

191 lines not on this page · raw message