From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Subject: acpi_enable_wakeup_device question Date: Mon, 23 Aug 2004 01:18:53 -0500 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <200408230118.53301.dtor_core@ameritech.net> 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: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org Hi, I see the following comment in drivers/acpi/sleeip/wakeup.c: /** * acpi_enable_wakeup_device - enable wakeup devices * @sleep_state: ACPI state * Enable all wakup devices's GPE */ void acpi_enable_wakeup_device( u8 sleep_state) { struct list_head * node, * next; /* * Caution: this routine must be invoked when interrupt is disabled * Refer ACPI2.0: P212 */ But I can not seem to find anything related to that on p.212 ACPI 2.0c. As far as I can tell functions called by acpi_enable_wakeup_device (such as acpi_set_gpe_type and acpi_enable_gpe) can be safely called from process context. Why this function has to be called with interrupts disabled? Thanks! -- Dmitry ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285