Revert "arm: mm: hugetlb WT hack"
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 1 Jun 2014 22:24:28 +0000 (01:24 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 11 Jul 2014 22:37:14 +0000 (01:37 +0300)
This reverts commit f89d2c1ea0e0d14122ad3d480da6e4a9917111e4.
DraStic suffers performance degradation with WT, it needs to be
configurable. We'll use different hack on madvise().

arch/arm/mm/mmu.c

index 1ca732f..0a5191e 100644 (file)
@@ -572,12 +572,6 @@ static void __init build_mem_type_table(void)
 
        arm_hugepmdprotval = mem_types[MT_MEMORY].prot_sect | PMD_SECT_AP_READ
                                | PMD_SECT_nG;
-
-       /* HACK: make huge pages WT
-        * XXX: mm will not know nothing about this..
-        * FIXME: should only do it on Cortex-A8 or below */
-       arm_hugepmdprotval &= ~(PMD_SECT_WB | PMD_SECT_TEX(1));
-       arm_hugepmdprotval |= PMD_SECT_WT;
 #endif
 
 }