提交 7cddc397 编写于 作者: L Lennert Buytenhek 提交者: Russell King

[ARM] 3708/2: fix SMP build after section ioremap changes

Patch from Lennert Buytenhek

Commit ff0daca5 broke the SMP build,
this patch fixes it up again.
Signed-off-by: NLennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 29454dde
...@@ -369,6 +369,7 @@ void __iounmap(void __iomem *addr) ...@@ -369,6 +369,7 @@ void __iounmap(void __iomem *addr)
addr = (void __iomem *)(PAGE_MASK & (unsigned long)addr); addr = (void __iomem *)(PAGE_MASK & (unsigned long)addr);
#ifndef CONFIG_SMP
/* /*
* If this is a section based mapping we need to handle it * If this is a section based mapping we need to handle it
* specially as the VM subysystem does not know how to handle * specially as the VM subysystem does not know how to handle
...@@ -390,6 +391,7 @@ void __iounmap(void __iomem *addr) ...@@ -390,6 +391,7 @@ void __iounmap(void __iomem *addr)
} }
} }
write_unlock(&vmlist_lock); write_unlock(&vmlist_lock);
#endif
if (!section_mapping) if (!section_mapping)
vunmap(addr); vunmap(addr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册