aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2016-12-28 02:28:49 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-01-02 17:18:41 -0500
commit0fc5e8f4e4b33ddfa1d1d673fcd420d6e13eb076 (patch)
tree98882708adde1882b7aa110832c85df4b574a307 /tools
parentfcfb45531d7ef71a19caaa0a983611ca57ec04fe (diff)
ACPICA: Hardware: Add sleep register hooks
ACPICA commit ba665dc8e20d9f7730466a659564dd6c557a6cbc In Linux, para-virtualization implmentation hooks critical register writes to prevent real hardware operations. This increases divergences when the sleep registers are cracked in Linux resident ACPICA. This patch tries to introduce a single OSL to reduce the divergences. Link: https://github.com/acpica/acpica/commit/ba665dc8 Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/power/acpi/os_specific/service_layers/osunixxf.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/power/acpi/os_specific/service_layers/osunixxf.c b/tools/power/acpi/os_specific/service_layers/osunixxf.c
index 10648aaf6164..e41c2644c347 100644
--- a/tools/power/acpi/os_specific/service_layers/osunixxf.c
+++ b/tools/power/acpi/os_specific/service_layers/osunixxf.c
@@ -318,6 +318,28 @@ acpi_os_physical_table_override(struct acpi_table_header *existing_table,
318 318
319/****************************************************************************** 319/******************************************************************************
320 * 320 *
321 * FUNCTION: acpi_os_enter_sleep
322 *
323 * PARAMETERS: sleep_state - Which sleep state to enter
324 * rega_value - Register A value
325 * regb_value - Register B value
326 *
327 * RETURN: Status
328 *
329 * DESCRIPTION: A hook before writing sleep registers to enter the sleep
330 * state. Return AE_CTRL_TERMINATE to skip further sleep register
331 * writes.
332 *
333 *****************************************************************************/
334
335acpi_status acpi_os_enter_sleep(u8 sleep_state, u32 rega_value, u32 regb_value)
336{
337
338 return (AE_OK);
339}
340
341/******************************************************************************
342 *
321 * FUNCTION: acpi_os_redirect_output 343 * FUNCTION: acpi_os_redirect_output
322 * 344 *
323 * PARAMETERS: destination - An open file handle/pointer 345 * PARAMETERS: destination - An open file handle/pointer