Skip to content

Commit

Permalink
x86-64: Also clear _PAGE_GLOBAL from __supported_pte_mask if !cpu_has…
Browse files Browse the repository at this point in the history
…_pge

Not just setting it when the feature is available is for
consistency, and may allow Xen to drop its custom clearing of
the flag (unless it needs it cleared earlier than this code
executes). Note that the change is benign to ix86, as the flag
starts out clear there.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/54C215D10200007800058912@mail.emea.novell.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
jbeulich authored and Ingo Molnar committed Feb 19, 2015
1 parent 5b171e8 commit 0cdb81b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/x86/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ static void __init probe_page_size_mask(void)
if (cpu_has_pge) {
set_in_cr4(X86_CR4_PGE);
__supported_pte_mask |= _PAGE_GLOBAL;
}
} else
__supported_pte_mask &= ~_PAGE_GLOBAL;
}

#ifdef CONFIG_X86_32
Expand Down

0 comments on commit 0cdb81b

Please sign in to comment.