mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bodo Eggert <7eggert@gmx.de>
To: Bodo Eggert <7eggert@gmx.de>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Kconfig changes 3: s/menu/menuconfig/ APM menu
Date: Mon, 4 Jul 2005 12:15:31 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.58.0507041210190.6165@be1.lrz> (raw)
In-Reply-To: <Pine.LNX.4.58.0507041134410.3798@be1.lrz>

Part 3: The APM menu.

In many config submenus, the first menu option will enable the rest 
of the menu options. For these menus, It's appropriate to use the more 
convenient "menuconfig" keyword.

This patch is designed for 2.6.12; the patch for .13-rc1 will be posted
as a reply.


--- a/./arch/i386/Kconfig	2005-06-19 14:16:03.000000000 +0200
+++ b/./arch/i386/Kconfig	2005-07-04 12:01:27.000000000 +0200
@@ -949,12 +949,9 @@ source kernel/power/Kconfig
 
 source "drivers/acpi/Kconfig"
 
-menu "APM (Advanced Power Management) BIOS Support"
-depends on PM && !X86_VISWS
-
-config APM
+menuconfig APM
 	tristate "APM (Advanced Power Management) BIOS support"
-	depends on PM
+	depends on PM && !X86_VISWS
 	---help---
 	  APM is a BIOS specification for saving power using several different
 	  techniques. This is mostly useful for battery powered laptops with
@@ -1011,9 +1008,10 @@ config APM
 	  To compile this driver as a module, choose M here: the
 	  module will be called apm.
 
+if APM
+
 config APM_IGNORE_USER_SUSPEND
 	bool "Ignore USER SUSPEND"
-	depends on APM
 	help
 	  This option will ignore USER SUSPEND requests. On machines with a
 	  compliant APM BIOS, you want to say N. However, on the NEC Versa M
@@ -1021,7 +1019,6 @@ config APM_IGNORE_USER_SUSPEND
 
 config APM_DO_ENABLE
 	bool "Enable PM at boot time"
-	depends on APM
 	---help---
 	  Enable APM features at boot time. From page 36 of the APM BIOS
 	  specification: "When disabled, the APM BIOS does not automatically
@@ -1039,7 +1036,6 @@ config APM_DO_ENABLE
 
 config APM_CPU_IDLE
 	bool "Make CPU Idle calls when idle"
-	depends on APM
 	help
 	  Enable calls to APM CPU Idle/CPU Busy inside the kernel's idle loop.
 	  On some machines, this can activate improved power savings, such as
@@ -1051,7 +1047,6 @@ config APM_CPU_IDLE
 
 config APM_DISPLAY_BLANK
 	bool "Enable console blanking using APM"
-	depends on APM
 	help
 	  Enable console blanking using the APM. Some laptops can use this to
 	  turn off the LCD backlight when the screen blanker of the Linux
@@ -1065,7 +1060,6 @@ config APM_DISPLAY_BLANK
 
 config APM_RTC_IS_GMT
 	bool "RTC stores time in GMT"
-	depends on APM
 	help
 	  Say Y here if your RTC (Real Time Clock a.k.a. hardware clock)
 	  stores the time in GMT (Greenwich Mean Time). Say N if your RTC
@@ -1078,7 +1072,6 @@ config APM_RTC_IS_GMT
 
 config APM_ALLOW_INTS
 	bool "Allow interrupts during APM BIOS calls"
-	depends on APM
 	help
 	  Normally we disable external interrupts while we are making calls to
 	  the APM BIOS as a measure to lessen the effects of a badly behaving
@@ -1089,13 +1082,12 @@ config APM_ALLOW_INTS
 
 config APM_REAL_MODE_POWER_OFF
 	bool "Use real mode APM BIOS call to power off"
-	depends on APM
 	help
 	  Use real mode APM BIOS calls to switch off the computer. This is
 	  a work-around for a number of buggy BIOSes. Switch this option on if
 	  your computer crashes instead of powering off properly.
 
-endmenu
+endif
 
 source "arch/i386/kernel/cpu/cpufreq/Kconfig"
 
-- 
"Violence is the last resort of the incompetent."    - Isaak Asimov (1920-1992)
"Damn straight. The competent don't wait that long." - Jerry Pournelle

  parent reply	other threads:[~2005-07-04 10:24 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-30 21:06 [PATCH] Kconfig changes: s/menu/menuconfig/ Bodo Eggert
2005-07-01  9:05 ` Bodo Eggert
2005-07-04 13:13   ` [PATCH][Update 2] " Bodo Eggert
2005-07-04  9:49 ` [PATCH] " Bodo Eggert
2005-07-04  9:55   ` Bodo Eggert
2005-07-04 12:24     ` [PATCH][Update] Kconfig changes 2b: s/menu/menuconfig/ USB menu Bodo Eggert
2005-07-04 10:15   ` Bodo Eggert [this message]
2005-07-04 10:23     ` [PATCH] Kconfig changes 3: s/menu/menuconfig/ APM menu Bodo Eggert
2005-07-04 10:40     ` [PATCH] Kconfig changes 4: s/menu/menuconfig/ CPU scaling menu Bodo Eggert
2005-07-04 10:43       ` Bodo Eggert
2005-07-04 10:53         ` Russell King
2005-07-04 12:02           ` Bodo Eggert
2005-07-04 10:53       ` [PATCH] Kconfig changes 4: s/menu/menuconfig/ profiling menu Bodo Eggert
2005-07-04 13:39         ` [PATCH] Kconfig changes 6: Move the Fusion MPT menu Bodo Eggert
2005-07-04 13:45           ` Bodo Eggert
2005-07-04 12:53       ` [PATCH] Kconfig changes 4: s/menu/menuconfig/ CPU scaling menu Bodo Eggert
2005-07-04 12:22   ` [PATCH][Update] Kconfig changes 2b: s/menu/menuconfig/ USB menu Bodo Eggert
2005-07-04 10:57 ` [PATCH] Kconfig changes: s/menu/menuconfig/ Sam Ravnborg
2005-07-04 12:37   ` Bodo Eggert
2005-07-04 12:35 ` [PATCH][Update] Kconfig changes 1b: s/menu/menuconfig/ Bodo Eggert
2005-07-04 13:11 ` [PATCH][Update 2] Kconfig changes: s/menu/menuconfig/ Bodo Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.58.0507041210190.6165@be1.lrz \
    --to=7eggert@gmx.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®