diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2012-10-19 10:54:24 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2012-10-19 10:55:09 -0400 |
commit | 4533d86270d7986e00594495dde9a109d6be27ae (patch) | |
tree | c2473cac653f7b98e5bd5e6475e63734be4b7644 /arch/x86/kernel/setup.c | |
parent | 21c5e50e15b1abd797e62f18fd7f90b9cc004cbd (diff) | |
parent | 5bc66170dc486556a1e36fd384463536573f4b82 (diff) |
Merge commit '5bc66170dc486556a1e36fd384463536573f4b82' into x86/urgent
From Borislav Petkov <bp@amd64.org>:
Below is a RAS fix which reverts the addition of a sysfs attribute
which we agreed is not needed, post-factum. And this should go in now
because that sysfs attribute is going to end up in 3.7 otherwise and
thus exposed to userspace; removing it then would be a lot harder.
This is done as a merge rather than a simple patch/cherry-pick since
the baseline for this patch was not in the previous x86/urgent.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/kernel/setup.c')
-rw-r--r-- | arch/x86/kernel/setup.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 198e774498ec..468e98dfd44e 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -68,6 +68,7 @@ | |||
68 | #include <linux/percpu.h> | 68 | #include <linux/percpu.h> |
69 | #include <linux/crash_dump.h> | 69 | #include <linux/crash_dump.h> |
70 | #include <linux/tboot.h> | 70 | #include <linux/tboot.h> |
71 | #include <linux/jiffies.h> | ||
71 | 72 | ||
72 | #include <video/edid.h> | 73 | #include <video/edid.h> |
73 | 74 | ||
@@ -970,13 +971,11 @@ void __init setup_arch(char **cmdline_p) | |||
970 | initmem_init(); | 971 | initmem_init(); |
971 | memblock_find_dma_reserve(); | 972 | memblock_find_dma_reserve(); |
972 | 973 | ||
973 | #ifdef CONFIG_KVM_CLOCK | 974 | #ifdef CONFIG_KVM_GUEST |
974 | kvmclock_init(); | 975 | kvmclock_init(); |
975 | #endif | 976 | #endif |
976 | 977 | ||
977 | x86_init.paging.pagetable_setup_start(swapper_pg_dir); | 978 | x86_init.paging.pagetable_init(); |
978 | paging_init(); | ||
979 | x86_init.paging.pagetable_setup_done(swapper_pg_dir); | ||
980 | 979 | ||
981 | if (boot_cpu_data.cpuid_level >= 0) { | 980 | if (boot_cpu_data.cpuid_level >= 0) { |
982 | /* A CPU has %cr4 if and only if it has CPUID */ | 981 | /* A CPU has %cr4 if and only if it has CPUID */ |
@@ -1047,6 +1046,8 @@ void __init setup_arch(char **cmdline_p) | |||
1047 | mcheck_init(); | 1046 | mcheck_init(); |
1048 | 1047 | ||
1049 | arch_init_ideal_nops(); | 1048 | arch_init_ideal_nops(); |
1049 | |||
1050 | register_refined_jiffies(CLOCK_TICK_RATE); | ||
1050 | } | 1051 | } |
1051 | 1052 | ||
1052 | #ifdef CONFIG_X86_32 | 1053 | #ifdef CONFIG_X86_32 |