LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH][RFC] Make entire ACPI submenu dependent on PM.
@ 2007-03-04 18:17 Robert P. J. Day
  2007-03-10  3:26 ` Len Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Robert P. J. Day @ 2007-03-04 18:17 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: len.brown


  Make the visibility of the entire ACPI submenu dependent on PM.

Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>

---

  given that de-selecting Power Management (PM) de-activates the
entire contents of the ACPI submenu, it seems pointless to leave the
top-level menu entry visible.  but this is just a hack and i'll leave
it to the official maintainers to do it properly. :-)

diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
index 7c49e10..3208ce0 100644
--- a/drivers/acpi/Kconfig
+++ b/drivers/acpi/Kconfig
@@ -7,6 +7,7 @@ menu "ACPI (Advanced Configuration and Power Interface) Support"
 	depends on !X86_VISWS
 	depends on !IA64_HP_SIM
 	depends on IA64 || X86
+	depends on PM

 config ACPI
 	bool "ACPI Support"

-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH][RFC] Make entire ACPI submenu dependent on PM.
  2007-03-04 18:17 [PATCH][RFC] Make entire ACPI submenu dependent on PM Robert P. J. Day
@ 2007-03-10  3:26 ` Len Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Len Brown @ 2007-03-10  3:26 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: Linux Kernel Mailing List, linux-acpi

This patch is right, and I applied it.

On i386, it did what it should -- made the menus look better.

Testing x86_64 exposed a latent bug, however.
Since CONFIG_X86_64_ACPI_NUMA=y does a select on ACPI,
it is possible to config a kernel with PM=n
and ACPI=y, which violates ACPI's dependency on PM.

Basically, select of something that has dependencies doesn't
enforce those dependencies.

When will somebody re-write Kconfig into something that
humans can use?

-Len

On Sunday 04 March 2007 13:17, Robert P. J. Day wrote:
> 
>   Make the visibility of the entire ACPI submenu dependent on PM.
> 
> Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
> 
> ---
> 
>   given that de-selecting Power Management (PM) de-activates the
> entire contents of the ACPI submenu, it seems pointless to leave the
> top-level menu entry visible.  but this is just a hack and i'll leave
> it to the official maintainers to do it properly. :-)
> 
> diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
> index 7c49e10..3208ce0 100644
> --- a/drivers/acpi/Kconfig
> +++ b/drivers/acpi/Kconfig
> @@ -7,6 +7,7 @@ menu "ACPI (Advanced Configuration and Power Interface) Support"
>  	depends on !X86_VISWS
>  	depends on !IA64_HP_SIM
>  	depends on IA64 || X86
> +	depends on PM
> 
>  config ACPI
>  	bool "ACPI Support"
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-10  3:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-04 18:17 [PATCH][RFC] Make entire ACPI submenu dependent on PM Robert P. J. Day
2007-03-10  3:26 ` Len Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).