aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2017-09-19 22:00:56 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-10-03 19:43:06 -0400
commit8092936dacde0fd00e201390f30d8c219b818f36 (patch)
tree2eacf1cd053945c2461c897794a52e207b63343d
parentc2e56e54b2b426fdce62e1a08a77ce8e6f4b915c (diff)
ACPICA: Update acpi_get_timer for 64-bit interface to acpi_hw_read
ACPICA commit 1cdcf16447c15694faa564c0cd8e357b910344a0 Return value from acpi_hw_read is now 64 bits, but the ACPI PM Timer is defined by the ACPI spec to be 32 bits. Link: https://github.com/acpica/acpica/commit/1cdcf16447c1 Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/acpi/acpica/hwtimer.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/hwtimer.c b/drivers/acpi/acpica/hwtimer.c
index b3c5d8c754bb..a2f4e25d45b1 100644
--- a/drivers/acpi/acpica/hwtimer.c
+++ b/drivers/acpi/acpica/hwtimer.c
@@ -94,6 +94,7 @@ ACPI_EXPORT_SYMBOL(acpi_get_timer_resolution)
94acpi_status acpi_get_timer(u32 * ticks) 94acpi_status acpi_get_timer(u32 * ticks)
95{ 95{
96 acpi_status status; 96 acpi_status status;
97 u64 timer_value;
97 98
98 ACPI_FUNCTION_TRACE(acpi_get_timer); 99 ACPI_FUNCTION_TRACE(acpi_get_timer);
99 100
@@ -107,7 +108,14 @@ acpi_status acpi_get_timer(u32 * ticks)
107 return_ACPI_STATUS(AE_SUPPORT); 108 return_ACPI_STATUS(AE_SUPPORT);
108 } 109 }
109 110
110 status = acpi_hw_read(ticks, &acpi_gbl_FADT.xpm_timer_block); 111 status = acpi_hw_read(&timer_value, &acpi_gbl_FADT.xpm_timer_block);
112 if (ACPI_SUCCESS(status)) {
113
114 /* ACPI PM Timer is defined to be 32 bits (PM_TMR_LEN) */
115
116 *ticks = (u32)timer_value;
117 }
118
111 return_ACPI_STATUS(status); 119 return_ACPI_STATUS(status);
112} 120}
113 121