Revert "Store huge page linux pte in mmu_context_t"
authorGrazvydas Ignotas <notasas@gmail.com>
Wed, 6 Feb 2013 16:02:33 +0000 (18:02 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Wed, 20 Feb 2013 21:19:19 +0000 (23:19 +0200)
This reverts commit 307b4042077c3f718a94bc3ce6d0ffd72c1575d7.

arch/arm/include/asm/mmu.h
arch/arm/mm/pgd.c

index b338265..1496565 100644 (file)
@@ -9,10 +9,6 @@ typedef struct {
        raw_spinlock_t id_lock;
 #endif
        unsigned int kvm_seq;
-#ifdef CONFIG_ARM_HUGETLB_SUPPORT
-       /* we place hugepage linux pte at mm_struct.context  */
-       pte_t *huge_linux_pte;
-#endif
 } mm_context_t;
 
 #ifdef CONFIG_CPU_HAS_ASID
index 965ed00..b2027c1 100644 (file)
@@ -10,7 +10,6 @@
 #include <linux/mm.h>
 #include <linux/gfp.h>
 #include <linux/highmem.h>
-#include <linux/slab.h>
 
 #include <asm/pgalloc.h>
 #include <asm/page.h>
@@ -68,12 +67,6 @@ pgd_t *pgd_alloc(struct mm_struct *mm)
                pte_unmap(new_pte);
        }
 
-#ifdef CONFIG_ARM_HUGETLB_SUPPORT
-       /* reset the hugepage linux pte pointer
-        * for new mm_struct when we do the fork
-        */
-       mm->context.huge_linux_pte = NULL;
-#endif
        return new_pgd;
 
 no_pte:
@@ -83,11 +76,6 @@ no_pmd:
 no_pud:
        free_pages((unsigned long)new_pgd, 2);
 no_pgd:
-#ifdef CONFIG_ARM_HUGETLB_SUPPORT
-       /* free huge linux pte table */
-       if (mm->context.huge_linux_pte != NULL)
-               kfree(mm->context.huge_linux_pte);
-#endif
        return NULL;
 }