[ARM SMP] Disable lazy flush_dcache_page for SMP
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Wed, 30 Nov 2005 16:02:54 +0000 (16:02 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 30 Nov 2005 16:02:54 +0000 (16:02 +0000)
Lazy flush_dcache_page() causes userspace instability on SMP
platforms, so disable it for now.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/flush.c

index c9a03981b785895a0d2379706e780847ccef1ed6..330695b6b19d09cc7e871b140604e66ad30cf3b1 100644 (file)
@@ -155,14 +155,19 @@ static void __flush_dcache_aliases(struct address_space *mapping, struct page *p
  *  space mappings, we can be lazy and remember that we may have dirty
  *  kernel cache lines for later.  Otherwise, we assume we have
  *  aliasing mappings.
+ *
+ * Note that we disable the lazy flush for SMP.
  */
 void flush_dcache_page(struct page *page)
 {
        struct address_space *mapping = page_mapping(page);
 
+#ifndef CONFIG_SMP
        if (mapping && !mapping_mapped(mapping))
                set_bit(PG_dcache_dirty, &page->flags);
-       else {
+       else
+#endif
+       {
                __flush_dcache_page(mapping, page);
                if (mapping && cache_is_vivt())
                        __flush_dcache_aliases(mapping, page);