Commit b038f7f3 authored by Sam Ravnborg's avatar Sam Ravnborg

Kconfig: cleanup cpufreq menu

This properly indents the cpufreq menu.
Remove CPU_FREQ_TABLE as visible option and use select instead
Signed-off-by: default avatarRoman Zippel <zippel@linux-m68k.org>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 6ce1c042
...@@ -6,22 +6,14 @@ menu "CPU Frequency scaling" ...@@ -6,22 +6,14 @@ menu "CPU Frequency scaling"
source "drivers/cpufreq/Kconfig" source "drivers/cpufreq/Kconfig"
config CPU_FREQ_TABLE if CPU_FREQ
tristate "CPU frequency table helpers"
depends on CPU_FREQ
default y
help
Many CPUFreq drivers use these helpers, so only say N here if
the CPUFreq driver of your choice doesn't need these helpers.
If in doubt, say Y.
comment "CPUFreq processor drivers" comment "CPUFreq processor drivers"
depends on CPU_FREQ
config X86_ACPI_CPUFREQ config X86_ACPI_CPUFREQ
tristate "ACPI Processor P-States driver" tristate "ACPI Processor P-States driver"
depends on CPU_FREQ_TABLE && ACPI_PROCESSOR select CPU_FREQ_TABLE
depends on ACPI_PROCESSOR
help help
This driver adds a CPUFreq driver which utilizes the ACPI This driver adds a CPUFreq driver which utilizes the ACPI
Processor Performance States. Processor Performance States.
...@@ -32,7 +24,8 @@ config X86_ACPI_CPUFREQ ...@@ -32,7 +24,8 @@ config X86_ACPI_CPUFREQ
config ELAN_CPUFREQ config ELAN_CPUFREQ
tristate "AMD Elan" tristate "AMD Elan"
depends on CPU_FREQ_TABLE && X86_ELAN select CPU_FREQ_TABLE
depends on X86_ELAN
---help--- ---help---
This adds the CPUFreq driver for AMD Elan SC400 and SC410 This adds the CPUFreq driver for AMD Elan SC400 and SC410
processors. processors.
...@@ -47,7 +40,7 @@ config ELAN_CPUFREQ ...@@ -47,7 +40,7 @@ config ELAN_CPUFREQ
config X86_POWERNOW_K6 config X86_POWERNOW_K6
tristate "AMD Mobile K6-2/K6-3 PowerNow!" tristate "AMD Mobile K6-2/K6-3 PowerNow!"
depends on CPU_FREQ_TABLE select CPU_FREQ_TABLE
help help
This adds the CPUFreq driver for mobile AMD K6-2+ and mobile This adds the CPUFreq driver for mobile AMD K6-2+ and mobile
AMD K6-3+ processors. AMD K6-3+ processors.
...@@ -58,7 +51,7 @@ config X86_POWERNOW_K6 ...@@ -58,7 +51,7 @@ config X86_POWERNOW_K6
config X86_POWERNOW_K7 config X86_POWERNOW_K7
tristate "AMD Mobile Athlon/Duron PowerNow!" tristate "AMD Mobile Athlon/Duron PowerNow!"
depends on CPU_FREQ_TABLE select CPU_FREQ_TABLE
help help
This adds the CPUFreq driver for mobile AMD K7 mobile processors. This adds the CPUFreq driver for mobile AMD K7 mobile processors.
...@@ -68,12 +61,14 @@ config X86_POWERNOW_K7 ...@@ -68,12 +61,14 @@ config X86_POWERNOW_K7
config X86_POWERNOW_K7_ACPI config X86_POWERNOW_K7_ACPI
bool bool
depends on ((X86_POWERNOW_K7 = "m" && ACPI_PROCESSOR) || (X86_POWERNOW_K7 = "y" && ACPI_PROCESSOR = "y")) depends on X86_POWERNOW_K7 && ACPI_PROCESSOR
depends on !(X86_POWERNOW_K7 = y && ACPI_PROCESSOR = m)
default y default y
config X86_POWERNOW_K8 config X86_POWERNOW_K8
tristate "AMD Opteron/Athlon64 PowerNow!" tristate "AMD Opteron/Athlon64 PowerNow!"
depends on CPU_FREQ_TABLE && EXPERIMENTAL select CPU_FREQ_TABLE
depends on EXPERIMENTAL
help help
This adds the CPUFreq driver for mobile AMD Opteron/Athlon64 processors. This adds the CPUFreq driver for mobile AMD Opteron/Athlon64 processors.
...@@ -83,12 +78,12 @@ config X86_POWERNOW_K8 ...@@ -83,12 +78,12 @@ config X86_POWERNOW_K8
config X86_POWERNOW_K8_ACPI config X86_POWERNOW_K8_ACPI
bool bool
depends on ((X86_POWERNOW_K8 = "m" && ACPI_PROCESSOR) || (X86_POWERNOW_K8 = "y" && ACPI_PROCESSOR = "y")) depends on X86_POWERNOW_K8 && ACPI_PROCESSOR
depends on !(X86_POWERNOW_K8 = y && ACPI_PROCESSOR = m)
default y default y
config X86_GX_SUSPMOD config X86_GX_SUSPMOD
tristate "Cyrix MediaGX/NatSemi Geode Suspend Modulation" tristate "Cyrix MediaGX/NatSemi Geode Suspend Modulation"
depends on CPU_FREQ
help help
This add the CPUFreq driver for NatSemi Geode processors which This add the CPUFreq driver for NatSemi Geode processors which
support suspend modulation. support suspend modulation.
...@@ -99,7 +94,7 @@ config X86_GX_SUSPMOD ...@@ -99,7 +94,7 @@ config X86_GX_SUSPMOD
config X86_SPEEDSTEP_CENTRINO config X86_SPEEDSTEP_CENTRINO
tristate "Intel Enhanced SpeedStep" tristate "Intel Enhanced SpeedStep"
depends on CPU_FREQ_TABLE select CPU_FREQ_TABLE
select X86_SPEEDSTEP_CENTRINO_TABLE if (!X86_SPEEDSTEP_CENTRINO_ACPI) select X86_SPEEDSTEP_CENTRINO_TABLE if (!X86_SPEEDSTEP_CENTRINO_ACPI)
help help
This adds the CPUFreq driver for Enhanced SpeedStep enabled This adds the CPUFreq driver for Enhanced SpeedStep enabled
...@@ -114,8 +109,8 @@ config X86_SPEEDSTEP_CENTRINO ...@@ -114,8 +109,8 @@ config X86_SPEEDSTEP_CENTRINO
config X86_SPEEDSTEP_CENTRINO_ACPI config X86_SPEEDSTEP_CENTRINO_ACPI
bool "Use ACPI tables to decode valid frequency/voltage pairs" bool "Use ACPI tables to decode valid frequency/voltage pairs"
depends on X86_SPEEDSTEP_CENTRINO depends on X86_SPEEDSTEP_CENTRINO && ACPI_PROCESSOR
depends on ((X86_SPEEDSTEP_CENTRINO = "m" && ACPI_PROCESSOR) || (X86_SPEEDSTEP_CENTRINO = "y" && ACPI_PROCESSOR = "y")) depends on !(X86_SPEEDSTEP_CENTRINO = y && ACPI_PROCESSOR = m)
default y default y
help help
Use primarily the information provided in the BIOS ACPI tables Use primarily the information provided in the BIOS ACPI tables
...@@ -136,7 +131,7 @@ config X86_SPEEDSTEP_CENTRINO_TABLE ...@@ -136,7 +131,7 @@ config X86_SPEEDSTEP_CENTRINO_TABLE
config X86_SPEEDSTEP_ICH config X86_SPEEDSTEP_ICH
tristate "Intel Speedstep on ICH-M chipsets (ioport interface)" tristate "Intel Speedstep on ICH-M chipsets (ioport interface)"
depends on CPU_FREQ_TABLE select CPU_FREQ_TABLE
help help
This adds the CPUFreq driver for certain mobile Intel Pentium III This adds the CPUFreq driver for certain mobile Intel Pentium III
(Coppermine), all mobile Intel Pentium III-M (Tualatin) and all (Coppermine), all mobile Intel Pentium III-M (Tualatin) and all
...@@ -149,7 +144,8 @@ config X86_SPEEDSTEP_ICH ...@@ -149,7 +144,8 @@ config X86_SPEEDSTEP_ICH
config X86_SPEEDSTEP_SMI config X86_SPEEDSTEP_SMI
tristate "Intel SpeedStep on 440BX/ZX/MX chipsets (SMI interface)" tristate "Intel SpeedStep on 440BX/ZX/MX chipsets (SMI interface)"
depends on CPU_FREQ_TABLE && EXPERIMENTAL select CPU_FREQ_TABLE
depends on EXPERIMENTAL
help help
This adds the CPUFreq driver for certain mobile Intel Pentium III This adds the CPUFreq driver for certain mobile Intel Pentium III
(Coppermine), all mobile Intel Pentium III-M (Tualatin) (Coppermine), all mobile Intel Pentium III-M (Tualatin)
...@@ -161,7 +157,7 @@ config X86_SPEEDSTEP_SMI ...@@ -161,7 +157,7 @@ config X86_SPEEDSTEP_SMI
config X86_P4_CLOCKMOD config X86_P4_CLOCKMOD
tristate "Intel Pentium 4 clock modulation" tristate "Intel Pentium 4 clock modulation"
depends on CPU_FREQ_TABLE select CPU_FREQ_TABLE
help help
This adds the CPUFreq driver for Intel Pentium 4 / XEON This adds the CPUFreq driver for Intel Pentium 4 / XEON
processors. processors.
...@@ -172,7 +168,7 @@ config X86_P4_CLOCKMOD ...@@ -172,7 +168,7 @@ config X86_P4_CLOCKMOD
config X86_CPUFREQ_NFORCE2 config X86_CPUFREQ_NFORCE2
tristate "nVidia nForce2 FSB changing" tristate "nVidia nForce2 FSB changing"
depends on CPU_FREQ && EXPERIMENTAL depends on EXPERIMENTAL
help help
This adds the CPUFreq driver for FSB changing on nVidia nForce2 This adds the CPUFreq driver for FSB changing on nVidia nForce2
platforms. platforms.
...@@ -183,7 +179,6 @@ config X86_CPUFREQ_NFORCE2 ...@@ -183,7 +179,6 @@ config X86_CPUFREQ_NFORCE2
config X86_LONGRUN config X86_LONGRUN
tristate "Transmeta LongRun" tristate "Transmeta LongRun"
depends on CPU_FREQ
help help
This adds the CPUFreq driver for Transmeta Crusoe and Efficeon processors This adds the CPUFreq driver for Transmeta Crusoe and Efficeon processors
which support LongRun. which support LongRun.
...@@ -194,7 +189,7 @@ config X86_LONGRUN ...@@ -194,7 +189,7 @@ config X86_LONGRUN
config X86_LONGHAUL config X86_LONGHAUL
tristate "VIA Cyrix III Longhaul" tristate "VIA Cyrix III Longhaul"
depends on CPU_FREQ_TABLE select CPU_FREQ_TABLE
help help
This adds the CPUFreq driver for VIA Samuel/CyrixIII, This adds the CPUFreq driver for VIA Samuel/CyrixIII,
VIA Cyrix Samuel/C3, VIA Cyrix Ezra and VIA Cyrix Ezra-T VIA Cyrix Samuel/C3, VIA Cyrix Ezra and VIA Cyrix Ezra-T
...@@ -205,7 +200,6 @@ config X86_LONGHAUL ...@@ -205,7 +200,6 @@ config X86_LONGHAUL
If in doubt, say N. If in doubt, say N.
comment "shared options" comment "shared options"
depends on CPU_FREQ
config X86_ACPI_CPUFREQ_PROC_INTF config X86_ACPI_CPUFREQ_PROC_INTF
bool "/proc/acpi/processor/../performance interface (deprecated)" bool "/proc/acpi/processor/../performance interface (deprecated)"
...@@ -220,8 +214,7 @@ config X86_ACPI_CPUFREQ_PROC_INTF ...@@ -220,8 +214,7 @@ config X86_ACPI_CPUFREQ_PROC_INTF
config X86_SPEEDSTEP_LIB config X86_SPEEDSTEP_LIB
tristate tristate
depends on (X86_SPEEDSTEP_ICH || X86_SPEEDSTEP_SMI || X86_P4_CLOCKMOD) default X86_SPEEDSTEP_ICH || X86_SPEEDSTEP_SMI || X86_P4_CLOCKMOD
default (X86_SPEEDSTEP_ICH || X86_SPEEDSTEP_SMI || X86_P4_CLOCKMOD)
config X86_SPEEDSTEP_RELAXED_CAP_CHECK config X86_SPEEDSTEP_RELAXED_CAP_CHECK
bool "Relaxed speedstep capability checks" bool "Relaxed speedstep capability checks"
...@@ -233,5 +226,6 @@ config X86_SPEEDSTEP_RELAXED_CAP_CHECK ...@@ -233,5 +226,6 @@ config X86_SPEEDSTEP_RELAXED_CAP_CHECK
option lets the probing code bypass some of those checks if the option lets the probing code bypass some of those checks if the
parameter "relaxed_check=1" is passed to the module. parameter "relaxed_check=1" is passed to the module.
endif # CPU_FREQ
endmenu endmenu
...@@ -13,9 +13,13 @@ config CPU_FREQ ...@@ -13,9 +13,13 @@ config CPU_FREQ
If in doubt, say N. If in doubt, say N.
if CPU_FREQ
config CPU_FREQ_TABLE
def_tristate m
config CPU_FREQ_DEBUG config CPU_FREQ_DEBUG
bool "Enable CPUfreq debugging" bool "Enable CPUfreq debugging"
depends on CPU_FREQ
help help
Say Y here to enable CPUfreq subsystem (including drivers) Say Y here to enable CPUfreq subsystem (including drivers)
debugging. You will need to activate it via the kernel debugging. You will need to activate it via the kernel
...@@ -29,7 +33,7 @@ config CPU_FREQ_DEBUG ...@@ -29,7 +33,7 @@ config CPU_FREQ_DEBUG
config CPU_FREQ_STAT config CPU_FREQ_STAT
tristate "CPU frequency translation statistics" tristate "CPU frequency translation statistics"
depends on CPU_FREQ && CPU_FREQ_TABLE select CPU_FREQ_TABLE
default y default y
help help
This driver exports CPU frequency statistics information through sysfs This driver exports CPU frequency statistics information through sysfs
...@@ -37,17 +41,15 @@ config CPU_FREQ_STAT ...@@ -37,17 +41,15 @@ config CPU_FREQ_STAT
config CPU_FREQ_STAT_DETAILS config CPU_FREQ_STAT_DETAILS
bool "CPU frequency translation statistics details" bool "CPU frequency translation statistics details"
depends on CPU_FREQ && CPU_FREQ_STAT depends on CPU_FREQ_STAT
default n
help help
This will show detail CPU frequency translation table in sysfs file This will show detail CPU frequency translation table in sysfs file
system system
choice choice
prompt "Default CPUFreq governor" prompt "Default CPUFreq governor"
depends on CPU_FREQ
default CPU_FREQ_DEFAULT_GOV_PERFORMANCE if !CPU_FREQ_SA1100 && !CPU_FREQ_SA1110
default CPU_FREQ_DEFAULT_GOV_USERSPACE if CPU_FREQ_SA1100 || CPU_FREQ_SA1110 default CPU_FREQ_DEFAULT_GOV_USERSPACE if CPU_FREQ_SA1100 || CPU_FREQ_SA1110
default CPU_FREQ_DEFAULT_GOV_PERFORMANCE
help help
This option sets which CPUFreq governor shall be loaded at This option sets which CPUFreq governor shall be loaded at
startup. If in doubt, select 'performance'. startup. If in doubt, select 'performance'.
...@@ -73,7 +75,6 @@ endchoice ...@@ -73,7 +75,6 @@ endchoice
config CPU_FREQ_GOV_PERFORMANCE config CPU_FREQ_GOV_PERFORMANCE
tristate "'performance' governor" tristate "'performance' governor"
depends on CPU_FREQ
help help
This cpufreq governor sets the frequency statically to the This cpufreq governor sets the frequency statically to the
highest available CPU frequency. highest available CPU frequency.
...@@ -82,7 +83,6 @@ config CPU_FREQ_GOV_PERFORMANCE ...@@ -82,7 +83,6 @@ config CPU_FREQ_GOV_PERFORMANCE
config CPU_FREQ_GOV_POWERSAVE config CPU_FREQ_GOV_POWERSAVE
tristate "'powersave' governor" tristate "'powersave' governor"
depends on CPU_FREQ
help help
This cpufreq governor sets the frequency statically to the This cpufreq governor sets the frequency statically to the
lowest available CPU frequency. lowest available CPU frequency.
...@@ -91,7 +91,6 @@ config CPU_FREQ_GOV_POWERSAVE ...@@ -91,7 +91,6 @@ config CPU_FREQ_GOV_POWERSAVE
config CPU_FREQ_GOV_USERSPACE config CPU_FREQ_GOV_USERSPACE
tristate "'userspace' governor for userspace frequency scaling" tristate "'userspace' governor for userspace frequency scaling"
depends on CPU_FREQ
help help
Enable this cpufreq governor when you either want to set the Enable this cpufreq governor when you either want to set the
CPU frequency manually or when an userspace program shall CPU frequency manually or when an userspace program shall
...@@ -104,7 +103,6 @@ config CPU_FREQ_GOV_USERSPACE ...@@ -104,7 +103,6 @@ config CPU_FREQ_GOV_USERSPACE
config CPU_FREQ_GOV_ONDEMAND config CPU_FREQ_GOV_ONDEMAND
tristate "'ondemand' cpufreq policy governor" tristate "'ondemand' cpufreq policy governor"
depends on CPU_FREQ
help help
'ondemand' - This driver adds a dynamic cpufreq policy governor. 'ondemand' - This driver adds a dynamic cpufreq policy governor.
The governor does a periodic polling and The governor does a periodic polling and
...@@ -116,3 +114,5 @@ config CPU_FREQ_GOV_ONDEMAND ...@@ -116,3 +114,5 @@ config CPU_FREQ_GOV_ONDEMAND
For details, take a look at linux/Documentation/cpu-freq. For details, take a look at linux/Documentation/cpu-freq.
If in doubt, say N. If in doubt, say N.
endif # CPU_FREQ
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment