diff options
| author | Dmitry Torokhov <[email protected]> | 2017-09-04 09:22:54 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2017-09-04 09:22:54 -0700 | 
| commit | a6cbfa1e6d38c4b3ab0ce7e3aea4bb4e744f24b8 (patch) | |
| tree | 8960e571a398b5d32e72bdb9c89ce965daa870ab /arch/x86/mm/init.c | |
| parent | f5308d1b83eba20e69df5e0926ba7257c8dd9074 (diff) | |
| parent | 08d6ac9ee5fedd82040bc878705981b67a116a3f (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 4.14 merge window.
Diffstat (limited to 'arch/x86/mm/init.c')
| -rw-r--r-- | arch/x86/mm/init.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c index cbc87ea98751..9b3f9fa5b283 100644 --- a/arch/x86/mm/init.c +++ b/arch/x86/mm/init.c @@ -161,16 +161,16 @@ static int page_size_mask;  static void __init probe_page_size_mask(void)  { -#if !defined(CONFIG_KMEMCHECK)  	/*  	 * For CONFIG_KMEMCHECK or pagealloc debugging, identity mapping will  	 * use small pages.  	 * This will simplify cpa(), which otherwise needs to support splitting  	 * large pages into small in interrupt context, etc.  	 */ -	if (boot_cpu_has(X86_FEATURE_PSE) && !debug_pagealloc_enabled()) +	if (boot_cpu_has(X86_FEATURE_PSE) && !debug_pagealloc_enabled() && !IS_ENABLED(CONFIG_KMEMCHECK))  		page_size_mask |= 1 << PG_LEVEL_2M; -#endif +	else +		direct_gbpages = 0;  	/* Enable PSE if available */  	if (boot_cpu_has(X86_FEATURE_PSE))  |