From: Satoru Takeuchi Subject: Re: [patch 17/26] acpi: ia64: wake on LAN fix Date: Mon, 03 Apr 2006 10:13:58 +0900 Message-ID: <87y7yncvft.wl%takeuchi_satoru@jp.fujitsu.com> References: <200603282203.k2SM3nUC027701@shell0.pdx.osdl.net> <20060331212633.GC30044@electric-eye.fr.zoreil.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from fgwmail7.fujitsu.co.jp ([192.51.44.37]:50923 "EHLO fgwmail7.fujitsu.co.jp") by vger.kernel.org with ESMTP id S964799AbWDCBLV (ORCPT ); Sun, 2 Apr 2006 21:11:21 -0400 In-Reply-To: <20060331212633.GC30044@electric-eye.fr.zoreil.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Francois Romieu Cc: akpm@osdl.org, len.brown@intel.com, linux-acpi@vger.kernel.org, takeuchi_satoru@jp.fujitsu.com, tony.luck@intel.com Hi Ueimor, At Fri, 31 Mar 2006 23:26:33 +0200, Francois Romieu wrote: > > akpm@osdl.org : > > > > From: Satoru Takeuchi > > > > Currently wakeup capability is available if and only if > > CONFIG_ACPI_SLEEP=y. But S5 is not a sleep state. This patch makes ACPI > > subsystem to be able to wakeup from S5 state even if sleep mode is not > > supported. > [...] > > diff -puN drivers/acpi/sleep/Makefile~acpi-ia64-wake-on-lan-fix drivers/acpi/sleep/Makefile > > --- devel/drivers/acpi/sleep/Makefile~acpi-ia64-wake-on-lan-fix 2006-03-28 14:03:06.000000000 -0800 > > +++ devel-akpm/drivers/acpi/sleep/Makefile 2006-03-28 14:03:06.000000000 -0800 > > @@ -1,5 +1,4 @@ > > -obj-y := poweroff.o wakeup.o > > +obj-y := poweroff.o wakeup.o proc.o > > obj-$(CONFIG_ACPI_SLEEP) += main.o > > -obj-$(CONFIG_ACPI_SLEEP_PROC_FS) += proc.o > > $ less drivers/acpi/Kconfig > [...] > config ACPI_SLEEP_PROC_SLEEP > bool "/proc/acpi/sleep (deprecated)" > depends on ACPI_SLEEP_PROC_FS > > The current patch would always build in a deprecated feature, right ? No. proc.c is always compiled, but the code relevant to /proc/acpi/sleep is not always built in. If ACPI_SLEEP_PROC_SLEEP is not defined, that code snip is not compiled because of #ifdef guard on proc.c. On i386 system, you can select y/n of ACPI_SLEEP_PROC_SLEEP. On ia64 system, ACPI_SLEEP_PROC_SLEEP is not defined because ACPI_SLEEP (and ACPI_SLEEP_PROC_FS) is always `n'. Thanks, Satoru Takeuchi