From: Grazvydas Ignotas Date: Sun, 1 Jun 2014 22:24:28 +0000 (+0300) Subject: Revert "arm: mm: hugetlb WT hack" X-Git-Tag: sz_173~102 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff_plain;h=6f4b131c8dee8f5bdfb4a254d4a610e6956f26bc Revert "arm: mm: hugetlb WT hack" This reverts commit f89d2c1ea0e0d14122ad3d480da6e4a9917111e4. DraStic suffers performance degradation with WT, it needs to be configurable. We'll use different hack on madvise(). --- diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 1ca732f93224..0a5191ec120e 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -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 }