acpi/x86: introduce __apci_map_table, v4
commit7d97277b754d3ee098a5ec69b6aaafb00c94e2f2
authorYinghai Lu <yhlu.kernel@gmail.com>
Sat, 7 Feb 2009 23:39:41 +0000 (7 15:39 -0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 9 Feb 2009 12:35:07 +0000 (9 13:35 +0100)
tree457ff6256a2da2f39f93500453a6a643ab29ef2b
parent05876f88ed9a66b26af613e222795ae790616252
acpi/x86: introduce __apci_map_table, v4

to prevent wrongly overwriting fixmap that still want to use.

ACPI used to rely on low mappings being all linearly mapped and
grew a habit: it never really unmapped certain kinds of tables
after use.

This can cause problems - for example the hypothetical case
when some spurious access still references it.

v2: remove prev_map and prev_size in __apci_map_table
v3: let acpi_os_unmap_memory() call early_iounmap too, so remove extral calling to
early_acpi_os_unmap_memory
v4: fix typo in one acpi_get_table_with_size calling

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Acked-by: Len Brown <len.brown@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/ia64/kernel/acpi.c
arch/x86/kernel/acpi/boot.c
drivers/acpi/acpica/tbxface.c
drivers/acpi/bus.c
drivers/acpi/osl.c
drivers/acpi/tables.c
include/acpi/acpiosxf.h
include/acpi/acpixf.h
include/linux/acpi.h