From: Ingo Molnar Date: Wed, 30 Jan 2008 12:34:02 +0000 (+0100) Subject: x86: change 64-bit pageattr to use set_pte_atomic() X-Git-Tag: v2.6.25-rc1~1143^2~90 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9db847f29bec9957c53fbdc05d65c4286235005;p=linux-2.6 x86: change 64-bit pageattr to use set_pte_atomic() NOP change - same as set_pte(). Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/mm/pageattr_64.c b/arch/x86/mm/pageattr_64.c index 5a03fb5fd5..34acbcd62e 100644 --- a/arch/x86/mm/pageattr_64.c +++ b/arch/x86/mm/pageattr_64.c @@ -86,7 +86,7 @@ repeat: prot = canon_pgprot(prot); if (level == 4) { - set_pte(kpte, mk_pte(page, prot)); + set_pte_atomic(kpte, mk_pte(page, prot)); } else { /* * split_large_page will take the reference for this @@ -99,7 +99,7 @@ repeat: if (!split) return -ENOMEM; pgprot_val(ref_prot2) &= ~_PAGE_NX; - set_pte(kpte, mk_pte(split, ref_prot2)); + set_pte_atomic(kpte, mk_pte(split, ref_prot2)); goto repeat; }