Skip to contentSkip to conversation

can we compile ACPI without define CONFIG_PM ?

PATCH New Sérgio Monteiro Basto 1 participant 1 message Apr 29, 2004 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 can we compile ACPI without define CONFIG_PM ?

Hi Kernel mailing list!

IIRC: if I recall correctly
we couldn't compile ACPI without Power management option (CONFIG_PM), but now, this is possible.

If the answer to the subject is no, then consider apply this patch on kernel 2.4.26.

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

So I need some confirmation from acpi-devel, but this is one meter of xconfig of the kernel so ...

For APM Xconfiguration, it's better that, we can choose APM options only if we select APM ( because if we don't select CONFIG_PM, CONFIG_APM will be disable and the APM options don't!).
This patch correct also this situation.

Thanks,

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