Robert Moore 5fd2f4c6d3 New GPE function, AcpiGpeWakeup.
ACPICA uses reference counters to avoid disabling GPEs too early in
case they have been enabled for many times.  This is done separately
for run time and for wakeup, but the wakeup GPE reference counter is
not really necessary, because GPEs are only enabled to wake up the
system at the hardware level by acpi_enter_sleep_state().  Thus it
only is necessary to set the corresponding bits in the wakeup enable
masks of these GPEs' registers right before the system enters a sleep
state.  Moreover, the GPE wakeup enable bits can only be set when the
target sleep state of the system is known and they need to be cleared
immediately after wakeup regardless of how many wakeup devices are
associated with a given GPE.

On the basis of the above observations, introduce function
acpi_gpe_wakeup() to be used for setting or clearing the enable bit
corresponding to a given GPE in its enable register's enable_for_wake
mask. Rafael J. Wysocki
2010-06-29 13:03:38 -07:00
2010-06-11 14:58:12 -07:00
2010-06-29 13:03:38 -07:00
Description
No description provided
170 MiB
Languages
ASL 68.6%
C 29%
Yacc 0.8%
HTML 0.5%
Shell 0.5%
Other 0.6%