Commit f8690227 authored by Hanjun Guo's avatar Hanjun Guo Committed by Rafael J. Wysocki

ACPI: LPIT: Put the low power idle table after using it

The mapped LPIT table is not used for runtime after init,
put the ACPI table to release the table mapping.
Signed-off-by: default avatarHanjun Guo <guohanjun@huawei.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 0e698dfa
...@@ -151,10 +151,11 @@ void acpi_init_lpit(void) ...@@ -151,10 +151,11 @@ void acpi_init_lpit(void)
struct acpi_table_lpit *lpit; struct acpi_table_lpit *lpit;
status = acpi_get_table(ACPI_SIG_LPIT, 0, (struct acpi_table_header **)&lpit); status = acpi_get_table(ACPI_SIG_LPIT, 0, (struct acpi_table_header **)&lpit);
if (ACPI_FAILURE(status)) if (ACPI_FAILURE(status))
return; return;
lpit_process((u64)lpit + sizeof(*lpit), lpit_process((u64)lpit + sizeof(*lpit),
(u64)lpit + lpit->header.length); (u64)lpit + lpit->header.length);
acpi_put_table((struct acpi_table_header *)lpit);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment