Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Hanjun Guo and committed by
Rafael J. Wysocki
f8690227 0e698dfa

+2 -1
+2 -1
drivers/acpi/acpi_lpit.c
··· 151 151 struct acpi_table_lpit *lpit; 152 152 153 153 status = acpi_get_table(ACPI_SIG_LPIT, 0, (struct acpi_table_header **)&lpit); 154 - 155 154 if (ACPI_FAILURE(status)) 156 155 return; 157 156 158 157 lpit_process((u64)lpit + sizeof(*lpit), 159 158 (u64)lpit + lpit->header.length); 159 + 160 + acpi_put_table((struct acpi_table_header *)lpit); 160 161 }