acpi_enable_wakeup_device question
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!
Signature · 8 lines
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