mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
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: Hanjun Guo <guohanjun@huawei.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
committed by
Rafael J. Wysocki
parent
0e698dfa28
commit
f8690227dd
@@ -151,10 +151,11 @@ void acpi_init_lpit(void)
|
||||
struct acpi_table_lpit *lpit;
|
||||
|
||||
status = acpi_get_table(ACPI_SIG_LPIT, 0, (struct acpi_table_header **)&lpit);
|
||||
|
||||
if (ACPI_FAILURE(status))
|
||||
return;
|
||||
|
||||
lpit_process((u64)lpit + sizeof(*lpit),
|
||||
(u64)lpit + lpit->header.length);
|
||||
|
||||
acpi_put_table((struct acpi_table_header *)lpit);
|
||||
}
|
||||
|
Reference in New Issue
Block a user