]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86/32: no need to use set_pte_present in set_pte_vaddr
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Wed, 18 Mar 2009 20:03:32 +0000 (13:03 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 19 Mar 2009 13:04:18 +0000 (14:04 +0100)
Impact: cleanup, remove last user of set_pte_present

set_pte_vaddr() is only used to install ptes in fixmaps, and
should never be used to overwrite a present mapping.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Xen-devel <xen-devel@lists.xensource.com>
LKML-Reference: <1237406613-2929-1-git-send-email-jeremy@goop.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/pgtable_32.c

index f2e477c91c1b85d72bb3d7ec0659e647c67c968c..46c8834aedc0fe3c16e5c88d70012f62f436a3c3 100644 (file)
@@ -50,7 +50,7 @@ void set_pte_vaddr(unsigned long vaddr, pte_t pteval)
        }
        pte = pte_offset_kernel(pmd, vaddr);
        if (pte_val(pteval))
-               set_pte_present(&init_mm, vaddr, pte, pteval);
+               set_pte_at(&init_mm, vaddr, pte, pteval);
        else
                pte_clear(&init_mm, vaddr, pte);