Skip to contentSkip to conversation

CONFIG_PM, CONFIG_ACPI, CONFIG_ACPI_SLEEP

DISCUSSION Len Brown 3 participants 3 messages Mar 9, 2005 – Mar 10, 2005 1 message not in the archive ACPI

lore
Share & tools
lore

Len Brown

author
#0 lore raw

Today it is possible to build with CONFIG_PM=n
CONFIG_ACPI=y
(however, CONFIG_ACPI_SLEEP does depend on CONFIG_PM)

Seems that the solution to the kexec poweroff issue is simpler if ACPI can depend on CONFIG_PM being present:
http://bugzilla.kernel.org/show_bug.cgi?id=4041

Why shouldn't CONFIG_ACPI depend on CONFIG_PM Why shouldn't CONFIG_ACPI_SLEEP simply be CONFIG_ACPI

I can't think of any good reasons not to simplify here, can you?

thanks,
-Len

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#1 lore raw

Hi.

Quoted 5 lines · Len Brown

Today it is possible to build with CONFIG_PM=n
CONFIG_ACPI=y
(however, CONFIG_ACPI_SLEEP does depend on CONFIG_PM)

Quoted 8 lines

Seems that the solution to the kexec poweroff issue is simpler if ACPI can depend on CONFIG_PM being present:
http://bugzilla.kernel.org/show_bug.cgi?id=4041

Why shouldn't CONFIG_ACPI depend on CONFIG_PM Why shouldn't CONFIG_ACPI_SLEEP simply be CONFIG_ACPI

I can't think of any good reasons not to simplify here, can you?

That sounds confusing to me. I thought that ACPI was much more than just power management. Doesn't it include IRQ routing, device enumeration and so on too?

Regards,

Nigel

Signature · 14 lines
Nigel Cunningham
Software Engineer, Canberra, Australia
http://www.cyclades.com
Bus: +61 (2) 6291 9554; Hme: +61 (2) 6292 8028;  Mob: +61 (417) 100 574

Maintainer of Suspend2 Kernel Patches http://suspend2.net



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
#3 lore raw
In reply to a message not in the archive

Hi, I had write about it on Apr/May 2004,

Because "Accidentally, I compile ACPI without CONFIG_PM on one Dell something dual Pentium III and power off didn't work."

For me this was a bug that has been introduced when ACPI enter in 2.4 because, before that, if I recall correctly
"we couldn't compile ACPI without define CONFIG_PM"

Conclusion, to simplify, on kernel configuration, I propose to force that (for compile ACPI we need define CONFIG_PM) (again?) with this little patch on attach.

thanks,

Quoted 12 lines · Nigel Cunningham

Hi.

Quoted 9 lines · Len Brown

Today it is possible to build with CONFIG_PM=n
CONFIG_ACPI=y
(however, CONFIG_ACPI_SLEEP does depend on CONFIG_PM)

Seems that the solution to the kexec poweroff issue is simpler if ACPI can depend on CONFIG_PM being present:
http://bugzilla.kernel.org/show_bug.cgi?id=4041

Quoted 8 lines
Quoted 4 lines

Why shouldn't CONFIG_ACPI depend on CONFIG_PM Why shouldn't CONFIG_ACPI_SLEEP simply be CONFIG_ACPI

I can't think of any good reasons not to simplify here, can you?

That sounds confusing to me. I thought that ACPI was much more than just power management. Doesn't it include IRQ routing, device enumeration and so on too?

yes, but we can say "ACPI without PM doesn't exist"

Quoted 4 lines

Regards,

Nigel

Signature · 1 line
Sérgio M.B.
arch/i386/config.in renamed from arch/i386/config.in.orig +4 -2
@@ -360,7 +360,7 @@
 bool 'Power Management support' CONFIG_PM
 
 dep_tristate '  Advanced Power Management BIOS support' CONFIG_APM $CONFIG_PM
-if [ "$CONFIG_APM" != "n" ]; then
+if [ "$CONFIG_APM" != "n" -a "$CONFIG_PM" = "y" ]; then
    bool '    Ignore USER SUSPEND' CONFIG_APM_IGNORE_USER_SUSPEND
    bool '    Enable PM at boot time' CONFIG_APM_DO_ENABLE
    bool '    Make CPU Idle calls when idle' CONFIG_APM_CPU_IDLE
@@ -370,7 +370,9 @@
    bool '    Use real mode APM BIOS call to power off' CONFIG_APM_REAL_MODE_POWER_OFF
 fi
 
-source drivers/acpi/Config.in
+if [ "$CONFIG_PM" = "y" ]; then
+	source drivers/acpi/Config.in
+fi
 
 endmenu