rk: mmu: default cachepolicy set to writeback
author黄涛 <huangtao@rock-chips.com>
Thu, 12 Apr 2012 09:05:44 +0000 (17:05 +0800)
committer黄涛 <huangtao@rock-chips.com>
Thu, 12 Apr 2012 09:52:17 +0000 (17:52 +0800)
arch/arm/mm/mmu.c

index 2b28c080a5295982eb6c03fdbc172cc9902d8046..85ecb83bea0ccd2cfb9d8ba1fcf3ddc616483431 100644 (file)
@@ -312,8 +312,10 @@ static void __init build_mem_type_table(void)
                        cachepolicy = CPOLICY_WRITEBACK;
                ecc_mask = 0;
        }
+#ifndef CONFIG_PLAT_RK
        if (is_smp())
                cachepolicy = CPOLICY_WRITEALLOC;
+#endif
 
        /*
         * Strip out features not present on earlier architectures.