diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-07-23 01:12:16 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-07-23 17:12:33 -0400 |
commit | c12f07d17c12193256a99e20c9a0f130fb8f7be8 (patch) | |
tree | 232f7df0b4d2e60fe9f9b192d2ae25cb2f859765 /include/acpi/acpixf.h | |
parent | b9ca3d7b513a9824dc97d5dc7c4eb9e30ab776b5 (diff) |
ACPICA: Add new GPE public interface - acpi_mark_gpe_for_wake.
ACPICA commit c49dbfed2bc069d0038ea7e1294409bfde7c2c8c
Some potential callers of acpi_setup_gpe_for_wake may know in advance that
there won't be any notify handlers installed for device wake notifications
from the given GPE (one example is a button GPE in Linux). For these cases,
acpi_mark_gpe_for_wake should be used instead of acpi_setup_gpe_for_wake.
This will set the ACPI_GPE_CAN_WAKE flag for the GPE without trying to
setup implicit wake notification for it (since there's no handler method).
Rafael Wysocki.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Diffstat (limited to 'include/acpi/acpixf.h')
-rw-r--r-- | include/acpi/acpixf.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index 3f6e14ff24b1..508e5649dda9 100644 --- a/include/acpi/acpixf.h +++ b/include/acpi/acpixf.h | |||
@@ -675,6 +675,10 @@ ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status | |||
675 | u32 gpe_number)) | 675 | u32 gpe_number)) |
676 | 676 | ||
677 | ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status | 677 | ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status |
678 | acpi_mark_gpe_for_wake(acpi_handle gpe_device, | ||
679 | u32 gpe_number)) | ||
680 | |||
681 | ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status | ||
678 | acpi_setup_gpe_for_wake(acpi_handle | 682 | acpi_setup_gpe_for_wake(acpi_handle |
679 | parent_device, | 683 | parent_device, |
680 | acpi_handle gpe_device, | 684 | acpi_handle gpe_device, |