* RE: acpi_enable_wakeup_device question
@ 2004-08-23 6:29 Li, Shaohua
[not found] ` <B44D37711ED29844BEA67908EAF36F039EA6FA-4yWAQGcml65pB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Li, Shaohua @ 2004-08-23 6:29 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hi,
Please look at the P212 in 2.0a or P215 in 2.0c(_PRW method). The reason
is ACPI recommend disabling interrupt, please look at the example at the
end of the section. Yes, enabling interrupt possibly doesn't matter (my
test shows it works), but we don't know if it works for all systems, so
we just obey to spec.
Thanks,
Shaohua
>-----Original Message-----
>From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:acpi-devel-
>admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Dmitry Torokhov
>Sent: Monday, August 23, 2004 2:19 PM
>To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>Subject: [ACPI] 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!
>
>--
>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
>_______________________________________________
>Acpi-devel mailing list
>Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>https://lists.sourceforge.net/lists/listinfo/acpi-devel
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 3+ messages in thread* acpi_enable_wakeup_device question
@ 2004-08-23 6:18 Dmitry Torokhov
0 siblings, 0 replies; 3+ messages in thread
From: Dmitry Torokhov @ 2004-08-23 6:18 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-08-23 18:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-23 6:29 acpi_enable_wakeup_device question Li, Shaohua
[not found] ` <B44D37711ED29844BEA67908EAF36F039EA6FA-4yWAQGcml65pB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-08-23 18:12 ` Dmitry Torokhov
-- strict thread matches above, loose matches on Subject: below --
2004-08-23 6:18 Dmitry Torokhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox