]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86-64: don't check for map replacement
authorJeremy Fitzhardinge <jeremy@goop.org>
Sun, 7 Sep 2008 22:21:17 +0000 (15:21 -0700)
committerIngo Molnar <mingo@elte.hu>
Mon, 13 Oct 2008 08:21:05 +0000 (10:21 +0200)
The check prevents flags on mappings from being changed, which is not
desireable.  There's no need to check for replacing a mapping, and
x86-32 does not do this check.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/init_64.c

index 5beb89683453472b3aff8674888ef3528ac05fb8..7c8bb46e83e48053e3796c02da85d0e3e89361b2 100644 (file)
@@ -196,9 +196,6 @@ set_pte_vaddr_pud(pud_t *pud_page, unsigned long vaddr, pte_t new_pte)
        }
 
        pte = pte_offset_kernel(pmd, vaddr);
-       if (!pte_none(*pte) && pte_val(new_pte) &&
-           pte_val(*pte) != (pte_val(new_pte) & __supported_pte_mask))
-               pte_ERROR(*pte);
        set_pte(pte, new_pte);
 
        /*