summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/sleep.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-01-04 22:05:20 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-01-04 22:05:20 +0100
commite3e9b577b477edbf50e6c1f93beee89f450f2b68 (patch)
treefba9c882c67cb4212a1a041011c22a1703ff9d5b /drivers/acpi/sleep.h
parentACPICA: Update version to 20151218 (diff)
downloadlinux-e3e9b577b477edbf50e6c1f93beee89f450f2b68.tar.xz
linux-e3e9b577b477edbf50e6c1f93beee89f450f2b68.zip
ACPICA: Drop Linux-specific waking vector functions
Commit f06147f9fbf1 (ACPICA: Hardware: Enable firmware waking vector for both 32-bit and 64-bit FACS) added three functions that aren't present in upstream ACPICA, acpi_hw_set_firmware_waking_vectors(), acpi_set_firmware_waking_vectors() and acpi_set_firmware_waking_vector64(), to allow Linux to use the previously existing API for setting the platform firmware waking vector. However, that wasn't necessary, since the ACPI sleep support code in Linux can be modified to use the upstream ACPICA's API easily and the additional functions may be dropped which reduces the code size and puts the kernel's ACPICA code more in line with the upstream. Make the changes as per the above. While at it, make the relevant function desctiption comments reflect the upstream ACPICA's ones. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Lv Zheng <lv.zheng@intel.com>
Diffstat (limited to 'drivers/acpi/sleep.h')
-rw-r--r--drivers/acpi/sleep.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/acpi/sleep.h b/drivers/acpi/sleep.h
index c797ffa568d5..a9cc34e663f9 100644
--- a/drivers/acpi/sleep.h
+++ b/drivers/acpi/sleep.h
@@ -6,3 +6,9 @@ extern struct list_head acpi_wakeup_device_list;
extern struct mutex acpi_device_lock;
extern void acpi_resume_power_resources(void);
+
+static inline acpi_status acpi_set_waking_vector(u32 wakeup_address)
+{
+ return acpi_set_firmware_waking_vector(
+ (acpi_physical_address)wakeup_address, 0);
+}