]> git.baikalelectronics.ru Git - kernel.git/commit
x86: CPA: fix gbpages support in try_preserve_large_page
authorAndi Kleen <ak@suse.de>
Wed, 13 Feb 2008 15:20:35 +0000 (16:20 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 13 Feb 2008 15:20:35 +0000 (16:20 +0100)
commitf2647fe18b38e8675568846b184f3539c683b770
treeb8e50f8850eb4d672aeda06819edbcf73a5d3eae
parenteb5b0a9f96c433fa6e04fb53ff331c8a686e2ab7
x86: CPA: fix gbpages support in try_preserve_large_page

[ mingo@elte.hu: while gbpages cannot be enabled on mainline currently,
  keep the code uptodate and this fix is easy enough. ]

Use correct page sizes and masks for GB pages in try_preserve_large_page()

This prevents a boot hang on a GB capable system with CONFIG_DIRECT_GBPAGES
enabled.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/mm/pageattr.c