[tip:x86/urgent] x86-64: Make early_pmd_flags __cpuinitdata

From: tip-bot for H. Peter Anvin
Date: Mon May 20 2013 - 14:50:37 EST

Commit-ID: 3a6a27dbe46298ee78a4135fa43c11f6bb3f8a6c
Gitweb: http://git.kernel.org/tip/3a6a27dbe46298ee78a4135fa43c11f6bb3f8a6c
Author: H. Peter Anvin <hpa@xxxxxxxxxxxxxxx>
AuthorDate: Mon, 20 May 2013 11:30:16 -0700
Committer: H. Peter Anvin <hpa@xxxxxxxxxxxxxxx>
CommitDate: Mon, 20 May 2013 11:44:52 -0700

x86-64: Make early_pmd_flags __cpuinitdata

Although early_pmd_flags is not actually *used* except at init time, it
is *set* in secondary_startup_64, which is executed on any CPU
startup, including hotplug and S3 resume.

Originally-by: Michal Hocko <mhocko@xxxxxxx>
Reported-and-tested-by: Michal Hocko <mhocko@xxxxxxx>
Debugged-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
Link: http://lkml.kernel.org/r/20130520182306.GA5348@xxxxxxxxxxxxxx
Cc: <stable@xxxxxxxxxxxxxxx> v3.9
arch/x86/kernel/head64.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c
index dab95a8..aa67bdd 100644
--- a/arch/x86/kernel/head64.c
+++ b/arch/x86/kernel/head64.c
@@ -34,7 +34,8 @@
extern pgd_t early_level4_pgt[PTRS_PER_PGD];
extern pmd_t early_dynamic_pgts[EARLY_DYNAMIC_PAGE_TABLES][PTRS_PER_PMD];
static unsigned int __initdata next_early_pgt = 2;
-pmdval_t __initdata early_pmd_flags = __PAGE_KERNEL_LARGE & ~(_PAGE_GLOBAL | _PAGE_NX);
+pmdval_t __cpuinitdata early_pmd_flags =

/* Wipe all early page tables except for the kernel symbol map */
static void __init reset_early_page_tables(void)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/