]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] remove 'prot_pte_ext' from memory type table
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sat, 6 Sep 2008 20:15:56 +0000 (21:15 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 1 Oct 2008 15:41:02 +0000 (16:41 +0100)
This member is now redundant; the memory type is encoded in the Linux
PTE bits.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/ioremap.c
arch/arm/mm/mm.h
arch/arm/mm/mmu.c

index b81dbf9ffb77b3f28a9b0ad872341fdad3656ca6..33eeab0ce3d167dffd4bead06d72dd31538d07d3 100644 (file)
@@ -55,8 +55,7 @@ static int remap_area_pte(pmd_t *pmd, unsigned long addr, unsigned long end,
                if (!pte_none(*pte))
                        goto bad;
 
-               set_pte_ext(pte, pfn_pte(phys_addr >> PAGE_SHIFT, prot),
-                           type->prot_pte_ext);
+               set_pte_ext(pte, pfn_pte(phys_addr >> PAGE_SHIFT, prot), 0);
                phys_addr += PAGE_SIZE;
        } while (pte++, addr += PAGE_SIZE, addr != end);
        return 0;
index 7647c597fc597ce82b5c08c587ca4b1f1c7b9724..66f8612c5e5b9cdbab3127013b65a16c0a264d2e 100644 (file)
@@ -18,7 +18,6 @@ static inline pmd_t *pmd_off_k(unsigned long virt)
 
 struct mem_type {
        unsigned int prot_pte;
-       unsigned int prot_pte_ext;
        unsigned int prot_l1;
        unsigned int prot_sect;
        unsigned int domain;
index 04602288da2cfbebdffb9ec1f1807d41bb016cf4..685dc1bf00833b4fd1efcae33a6426b5fcfdb5fd 100644 (file)
@@ -418,8 +418,7 @@ static void __init alloc_init_pte(pmd_t *pmd, unsigned long addr,
 
        pte = pte_offset_kernel(pmd, addr);
        do {
-               set_pte_ext(pte, pfn_pte(pfn, __pgprot(type->prot_pte)),
-                           type->prot_pte_ext);
+               set_pte_ext(pte, pfn_pte(pfn, __pgprot(type->prot_pte)), 0);
                pfn++;
        } while (pte++, addr += PAGE_SIZE, addr != end);
 }