Merge branches 'audit', 'delay', 'fixes', 'misc' and 'sta2x11' into for-linus
[platform/adaptation/renesas_rcar/renesas_kernel.git] / arch / arm / mm / mmu.c
index cf4528d..4c2d045 100644 (file)
 #include <linux/memblock.h>
 #include <linux/fs.h>
 #include <linux/vmalloc.h>
+#include <linux/sizes.h>
 
 #include <asm/cp15.h>
 #include <asm/cputype.h>
 #include <asm/sections.h>
 #include <asm/cachetype.h>
 #include <asm/setup.h>
-#include <asm/sizes.h>
 #include <asm/smp_plat.h>
 #include <asm/tlb.h>
 #include <asm/highmem.h>
@@ -422,12 +422,6 @@ static void __init build_mem_type_table(void)
        vecs_pgprot = kern_pgprot = user_pgprot = cp->pte;
 
        /*
-        * Only use write-through for non-SMP systems
-        */
-       if (!is_smp() && cpu_arch >= CPU_ARCH_ARMv5 && cachepolicy > CPOLICY_WRITETHROUGH)
-               vecs_pgprot = cache_policies[CPOLICY_WRITETHROUGH].pte;
-
-       /*
         * Enable CPU-specific coherency if supported.
         * (Only available on XSC3 at the moment.)
         */