public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: "Sérgio Monteiro Basto" <sergiomb@netcabo.pt>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	acpi-devel <acpi-devel@lists.sourceforge.net>
Subject: [PATCH] can we compile ACPI without define CONFIG_PM ?
Date: Thu, 29 Apr 2004 23:54:17 +0100	[thread overview]
Message-ID: <1083279256.3410.30.camel@darkstar> (raw)

[-- Attachment #1: Type: text/plain, Size: 727 bytes --]

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,
-- 
Sérgio M. B.

[-- Attachment #2: configopti.diff --]
[-- Type: text/x-patch, Size: 805 bytes --]

--- linux-2.4.26s/arch/i386/config.in.orig	2004-04-29 23:38:38.000000000 +0100
+++ linux-2.4.26s/arch/i386/config.in	2004-04-29 23:40:58.000000000 +0100
@@ -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
 

                 reply	other threads:[~2004-04-29 22:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1083279256.3410.30.camel@darkstar \
    --to=sergiomb@netcabo.pt \
    --cc=acpi-devel@lists.sourceforge.net \
    --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