Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136338
b: refs/heads/master
c: 05876f8
h: refs/heads/master
v: v3
  • Loading branch information
Jeremy Fitzhardinge authored and Ingo Molnar committed Feb 9, 2009
1 parent 50a9d3d commit 7852fc8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eecb9a697f0b790e5840dae8a8b866bea49a86ee
refs/heads/master: 05876f88ed9a66b26af613e222795ae790616252
8 changes: 5 additions & 3 deletions trunk/arch/x86/kernel/acpi/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,14 @@ char *__init __acpi_map_table(unsigned long phys, unsigned long size)
static char *prev_map;
static unsigned long prev_size;

if (prev_map) {
early_iounmap(prev_map, prev_size);
prev_map = NULL;
}

if (!phys || !size)
return NULL;

if (prev_map)
early_iounmap(prev_map, prev_size);

prev_size = size;
prev_map = early_ioremap(phys, size);

Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/acpi/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,12 @@ void __init acpi_early_init(void)
if (!acpi_strict)
acpi_gbl_enable_interpreter_slack = TRUE;

/*
* Doing a zero-sized mapping will clear out the previous
* __acpi_map_table() mapping, if any.
*/
__acpi_map_table(0, 0);

acpi_gbl_permanent_mmap = 1;

status = acpi_reallocate_root_table();
Expand Down

0 comments on commit 7852fc8

Please sign in to comment.