Skip to content

Commit f869022

Browse files
guohanjunrafaeljw
authored andcommitted
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 0e698df commit f869022

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/acpi/acpi_lpit.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,11 @@ void acpi_init_lpit(void)
151151
struct acpi_table_lpit *lpit;
152152

153153
status = acpi_get_table(ACPI_SIG_LPIT, 0, (struct acpi_table_header **)&lpit);
154-
155154
if (ACPI_FAILURE(status))
156155
return;
157156

158157
lpit_process((u64)lpit + sizeof(*lpit),
159158
(u64)lpit + lpit->header.length);
159+
160+
acpi_put_table((struct acpi_table_header *)lpit);
160161
}

0 commit comments

Comments
 (0)