* Re: [ACPI] [PATCH] can we compile ACPI without define CONFIG_PM ?
[not found] <A6974D8E5F98D511BB910002A50A6647615F9FD0@hdsmsx403.hd.intel.com>
@ 2004-05-07 4:18 ` Len Brown
2004-05-07 11:33 ` Sérgio Monteiro Basto
0 siblings, 1 reply; 3+ messages in thread
From: Len Brown @ 2004-05-07 4:18 UTC (permalink / raw)
To: sergiomb; +Cc: Linux Kernel Mailing List, ACPI Developers
Never occurred to me to build ACPI w/o CONFIG_PM...
There are #ifdef CONFIG_PM in the acpi code, so I guess this was on
purpose, but it makes ACPI a lot less interesting.
But I'm inclined to leave 2.4 alone except for real system failures.
The only clean-up I'm really interested in doing in 2.4 is when it makes
maintenance via backporting from 2.6 easier.
-Len
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ACPI] [PATCH] can we compile ACPI without define CONFIG_PM ?
2004-05-07 4:18 ` [ACPI] [PATCH] can we compile ACPI without define CONFIG_PM ? Len Brown
@ 2004-05-07 11:33 ` Sérgio Monteiro Basto
2004-05-07 14:52 ` Kevin P. Fleming
0 siblings, 1 reply; 3+ messages in thread
From: Sérgio Monteiro Basto @ 2004-05-07 11:33 UTC (permalink / raw)
To: Len Brown; +Cc: Linux Kernel Mailing List, ACPI Developers
[-- Attachment #1: Type: text/plain, Size: 1183 bytes --]
Hi , Len
Thanks for replying
So:
1 - ACPI w/o CONFIG_PM (is not supported)
2 - If accidentally we configure ACPI w/o CONFIG_PM. I tested and
doesn't power off correctly (at least on one Dell Precision 410).
3 - It is easy make this error in configuration, especial if we try use
.config from early versions.
4 - The patch doesn't hurt at all, just force to one correct
configuration.
On Fri, 2004-05-07 at 05:18, Len Brown wrote:
> Never occurred to me to build ACPI w/o CONFIG_PM...
> There are #ifdef CONFIG_PM in the acpi code, so I guess this was on
> purpose, but it makes ACPI a lot less interesting.
>
> But I'm inclined to leave 2.4 alone except for real system failures.
> The only clean-up I'm really interested in doing in 2.4 is when it makes
> maintenance via backporting from 2.6 easier.
I understand very well your point, and I don't check in kernel 2.6.5
Config.in, neither check in others architectures.
But I vote for apply this patch, because can avoid problems with
power-off machines.
Off-topic: I am testing last acpi-2.4.27 patch and it ok, no complains.
I resend the patch just in case.
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ACPI] [PATCH] can we compile ACPI without define CONFIG_PM ?
2004-05-07 11:33 ` Sérgio Monteiro Basto
@ 2004-05-07 14:52 ` Kevin P. Fleming
0 siblings, 0 replies; 3+ messages in thread
From: Kevin P. Fleming @ 2004-05-07 14:52 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: ACPI Developers
Sérgio Monteiro Basto wrote:
> 1 - ACPI w/o CONFIG_PM (is not supported)
>
> 2 - If accidentally we configure ACPI w/o CONFIG_PM. I tested and
> doesn't power off correctly (at least on one Dell Precision 410).
It works on my two server boxes here; ACPI turned on (button, fan,
processor, thermal zone and timer options only), but power management
not turned on. Both machines properly power off when asked.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-05-07 14:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <A6974D8E5F98D511BB910002A50A6647615F9FD0@hdsmsx403.hd.intel.com>
2004-05-07 4:18 ` [ACPI] [PATCH] can we compile ACPI without define CONFIG_PM ? Len Brown
2004-05-07 11:33 ` Sérgio Monteiro Basto
2004-05-07 14:52 ` Kevin P. Fleming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox