ACPI: LPIT: Put the low power idle table after using it
authorHanjun Guo <guohanjun@huawei.com>
Thu, 7 May 2020 09:09:13 +0000 (17:09 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 9 May 2020 09:29:16 +0000 (11:29 +0200)
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>
drivers/acpi/acpi_lpit.c

index 953437a..48e5059 100644 (file)
@@ -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);
 }