From 6f4b131c8dee8f5bdfb4a254d4a610e6956f26bc Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Mon, 2 Jun 2014 01:24:28 +0300 Subject: [PATCH] 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(). --- arch/arm/mm/mmu.c | 6 ------ 1 file changed, 6 deletions(-) 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 } -- 2.39.2