From: Bjorn Helgaas Subject: Re: fix ACPI poweroff in 2.4.25-rc2 Date: Wed, 3 Mar 2004 11:17:25 -0700 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <200403031117.25937.bjorn.helgaas@hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Marcelo Tosatti Cc: willy-tRhHnHjXm5DYtjvyW6yDsg@public.gmane.org, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org The recent 2.4 patch breaks the build for ia64 because we don't set CONFIG_ACPI_SLEEP, and acpi_system_save_state() is only defined under #ifdef CONFIG_ACPI_SLEEP. Can you add the following patch to deal with this? (Here's the original patch: http://linux.bkbits.net:8080/linux-2.4/cset-+MK1MFfKU9qYzr5aE/SGFA@public.gmane.org) Thanks, Bjorn ===== drivers/acpi/system.c 1.18 vs edited ===== --- 1.18/drivers/acpi/system.c Tue Mar 2 14:50:40 2004 +++ edited/drivers/acpi/system.c Wed Mar 3 10:43:11 2004 @@ -95,7 +95,9 @@ { if (unlikely(in_interrupt())) BUG(); +#ifdef CONFIG_ACPI_SLEEP acpi_system_save_state(ACPI_STATE_S5); +#endif acpi_enter_sleep_state_prep(ACPI_STATE_S5); ACPI_DISABLE_IRQS(); acpi_enter_sleep_state(ACPI_STATE_S5); ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click