From: Lennert Buytenhek Date: Mon, 3 Jul 2006 11:26:02 +0000 (+0100) Subject: [ARM] 3708/2: fix SMP build after section ioremap changes X-Git-Tag: v2.6.18-rc1~19^2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7cddc397027ddf80b2d916f6e8fb15a21e9791c5;p=linux-2.6-omap-h63xx.git [ARM] 3708/2: fix SMP build after section ioremap changes Patch from Lennert Buytenhek Commit ff0daca525dde796382b9ccd563f169df2571211 broke the SMP build, this patch fixes it up again. Signed-off-by: Lennert Buytenhek Signed-off-by: Russell King --- diff --git a/arch/arm/mm/ioremap.c b/arch/arm/mm/ioremap.c index 7eac87f0518..3e86fe7c333 100644 --- a/arch/arm/mm/ioremap.c +++ b/arch/arm/mm/ioremap.c @@ -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 @@ -390,6 +391,7 @@ void __iounmap(void __iomem *addr) } } write_unlock(&vmlist_lock); +#endif if (!section_mapping) vunmap(addr);