diff options
author | Jan Engelhardt <jengelh@linux01.gwdg.de> | 2007-05-02 13:27:12 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2007-05-02 13:27:12 -0400 |
commit | 7946331856f99bdb00b0a0a53e97d9b621546622 (patch) | |
tree | 21e13bedb0d8f0d29e742e9ebde5842d6105ab03 | |
parent | f039b754714a422959027cb18bb33760eb8153f0 (diff) |
[PATCH] i386: Use menuconfig objects - APM
(I hope Andi is the right one to Cc, otherwise please add, thanks!)
Use menuconfigs instead of menus, so the whole menu can be disabled at
once instead of going through all options.
Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Signed-off-by: Andi Kleen <ak@suse.de>
-rw-r--r-- | arch/i386/Kconfig | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/arch/i386/Kconfig b/arch/i386/Kconfig index c0a3e233fa3f..6964e247f473 100644 --- a/arch/i386/Kconfig +++ b/arch/i386/Kconfig | |||
@@ -915,12 +915,9 @@ source kernel/power/Kconfig | |||
915 | 915 | ||
916 | source "drivers/acpi/Kconfig" | 916 | source "drivers/acpi/Kconfig" |
917 | 917 | ||
918 | menu "APM (Advanced Power Management) BIOS Support" | 918 | menuconfig APM |
919 | depends on PM && !X86_VISWS | ||
920 | |||
921 | config APM | ||
922 | tristate "APM (Advanced Power Management) BIOS support" | 919 | tristate "APM (Advanced Power Management) BIOS support" |
923 | depends on PM | 920 | depends on PM && !X86_VISWS |
924 | ---help--- | 921 | ---help--- |
925 | APM is a BIOS specification for saving power using several different | 922 | APM is a BIOS specification for saving power using several different |
926 | techniques. This is mostly useful for battery powered laptops with | 923 | techniques. This is mostly useful for battery powered laptops with |
@@ -977,9 +974,10 @@ config APM | |||
977 | To compile this driver as a module, choose M here: the | 974 | To compile this driver as a module, choose M here: the |
978 | module will be called apm. | 975 | module will be called apm. |
979 | 976 | ||
977 | if APM | ||
978 | |||
980 | config APM_IGNORE_USER_SUSPEND | 979 | config APM_IGNORE_USER_SUSPEND |
981 | bool "Ignore USER SUSPEND" | 980 | bool "Ignore USER SUSPEND" |
982 | depends on APM | ||
983 | help | 981 | help |
984 | This option will ignore USER SUSPEND requests. On machines with a | 982 | This option will ignore USER SUSPEND requests. On machines with a |
985 | compliant APM BIOS, you want to say N. However, on the NEC Versa M | 983 | compliant APM BIOS, you want to say N. However, on the NEC Versa M |
@@ -987,7 +985,6 @@ config APM_IGNORE_USER_SUSPEND | |||
987 | 985 | ||
988 | config APM_DO_ENABLE | 986 | config APM_DO_ENABLE |
989 | bool "Enable PM at boot time" | 987 | bool "Enable PM at boot time" |
990 | depends on APM | ||
991 | ---help--- | 988 | ---help--- |
992 | Enable APM features at boot time. From page 36 of the APM BIOS | 989 | Enable APM features at boot time. From page 36 of the APM BIOS |
993 | specification: "When disabled, the APM BIOS does not automatically | 990 | specification: "When disabled, the APM BIOS does not automatically |
@@ -1005,7 +1002,6 @@ config APM_DO_ENABLE | |||
1005 | 1002 | ||
1006 | config APM_CPU_IDLE | 1003 | config APM_CPU_IDLE |
1007 | bool "Make CPU Idle calls when idle" | 1004 | bool "Make CPU Idle calls when idle" |
1008 | depends on APM | ||
1009 | help | 1005 | help |
1010 | Enable calls to APM CPU Idle/CPU Busy inside the kernel's idle loop. | 1006 | Enable calls to APM CPU Idle/CPU Busy inside the kernel's idle loop. |
1011 | On some machines, this can activate improved power savings, such as | 1007 | On some machines, this can activate improved power savings, such as |
@@ -1017,7 +1013,6 @@ config APM_CPU_IDLE | |||
1017 | 1013 | ||
1018 | config APM_DISPLAY_BLANK | 1014 | config APM_DISPLAY_BLANK |
1019 | bool "Enable console blanking using APM" | 1015 | bool "Enable console blanking using APM" |
1020 | depends on APM | ||
1021 | help | 1016 | help |
1022 | Enable console blanking using the APM. Some laptops can use this to | 1017 | Enable console blanking using the APM. Some laptops can use this to |
1023 | turn off the LCD backlight when the screen blanker of the Linux | 1018 | turn off the LCD backlight when the screen blanker of the Linux |
@@ -1031,7 +1026,6 @@ config APM_DISPLAY_BLANK | |||
1031 | 1026 | ||
1032 | config APM_ALLOW_INTS | 1027 | config APM_ALLOW_INTS |
1033 | bool "Allow interrupts during APM BIOS calls" | 1028 | bool "Allow interrupts during APM BIOS calls" |
1034 | depends on APM | ||
1035 | help | 1029 | help |
1036 | Normally we disable external interrupts while we are making calls to | 1030 | Normally we disable external interrupts while we are making calls to |
1037 | the APM BIOS as a measure to lessen the effects of a badly behaving | 1031 | the APM BIOS as a measure to lessen the effects of a badly behaving |
@@ -1042,13 +1036,12 @@ config APM_ALLOW_INTS | |||
1042 | 1036 | ||
1043 | config APM_REAL_MODE_POWER_OFF | 1037 | config APM_REAL_MODE_POWER_OFF |
1044 | bool "Use real mode APM BIOS call to power off" | 1038 | bool "Use real mode APM BIOS call to power off" |
1045 | depends on APM | ||
1046 | help | 1039 | help |
1047 | Use real mode APM BIOS calls to switch off the computer. This is | 1040 | Use real mode APM BIOS calls to switch off the computer. This is |
1048 | a work-around for a number of buggy BIOSes. Switch this option on if | 1041 | a work-around for a number of buggy BIOSes. Switch this option on if |
1049 | your computer crashes instead of powering off properly. | 1042 | your computer crashes instead of powering off properly. |
1050 | 1043 | ||
1051 | endmenu | 1044 | endif # APM |
1052 | 1045 | ||
1053 | source "arch/i386/kernel/cpu/cpufreq/Kconfig" | 1046 | source "arch/i386/kernel/cpu/cpufreq/Kconfig" |
1054 | 1047 | ||