Skip to content

Commit

Permalink
[ARM] 3708/2: fix SMP build after section ioremap changes
Browse files Browse the repository at this point in the history
Patch from Lennert Buytenhek

Commit ff0daca broke the SMP build,
this patch fixes it up again.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Lennert Buytenhek authored and Russell King committed Jul 3, 2006
1 parent 29454dd commit 7cddc39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mm/ioremap.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ void __iounmap(void __iomem *addr)

addr = (void __iomem *)(PAGE_MASK & (unsigned long)addr);

#ifndef CONFIG_SMP
/*
* If this is a section based mapping we need to handle it
* specially as the VM subysystem does not know how to handle
Expand All @@ -390,6 +391,7 @@ void __iounmap(void __iomem *addr)
}
}
write_unlock(&vmlist_lock);
#endif

if (!section_mapping)
vunmap(addr);
Expand Down

0 comments on commit 7cddc39

Please sign in to comment.