Skip to content

Commit

Permalink
x86: change 64-bit pageattr to use set_pte_atomic()
Browse files Browse the repository at this point in the history
NOP change - same as set_pte().

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Ingo Molnar committed Jan 30, 2008
1 parent 0d82494 commit d9db847
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/mm/pageattr_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
}

Expand Down

0 comments on commit d9db847

Please sign in to comment.