diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2009-02-07 18:39:40 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-09 07:34:46 -0500 |
commit | 05876f88ed9a66b26af613e222795ae790616252 (patch) | |
tree | 1f2c5be1c98eb2ea668410fa90b2f28156e479f6 /drivers/acpi | |
parent | eecb9a697f0b790e5840dae8a8b866bea49a86ee (diff) |
acpi: remove final __acpi_map_table mapping before setting acpi_gbl_permanent_mmap
On x86, __acpi_map_table uses early_ioremap() to create the mapping,
replacing the previous mapping with a new one. Once enough of the
kernel is up an running it switches to using normal ioremap(). At
that point, we need to clean up the final mapping to avoid a warning
from the early_ioremap subsystem.
This can be removed after all the instances in the ACPI code are fixed
that rely on early-ioremap's implicit overmapping of previously
mapped tables.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Acked-by: Len Brown <len.brown@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/bus.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 765fd1c56cd6..fb1be7b5dbc1 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c | |||
@@ -694,6 +694,12 @@ void __init acpi_early_init(void) | |||
694 | if (!acpi_strict) | 694 | if (!acpi_strict) |
695 | acpi_gbl_enable_interpreter_slack = TRUE; | 695 | acpi_gbl_enable_interpreter_slack = TRUE; |
696 | 696 | ||
697 | /* | ||
698 | * Doing a zero-sized mapping will clear out the previous | ||
699 | * __acpi_map_table() mapping, if any. | ||
700 | */ | ||
701 | __acpi_map_table(0, 0); | ||
702 | |||
697 | acpi_gbl_permanent_mmap = 1; | 703 | acpi_gbl_permanent_mmap = 1; |
698 | 704 | ||
699 | status = acpi_reallocate_root_table(); | 705 | status = acpi_reallocate_root_table(); |