Commit d9db847f authored by Ingo Molnar's avatar Ingo Molnar

x86: change 64-bit pageattr to use set_pte_atomic()

NOP change - same as set_pte().
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 0d82494e
......@@ -86,7 +86,7 @@ __change_page_attr(unsigned long address, struct page *page, pgprot_t prot)
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 @@ __change_page_attr(unsigned long address, struct page *page, pgprot_t prot)
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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment