diff options
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/setup.c | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index cc25c2b4a567..18346da8c594 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -1136,7 +1136,7 @@ void __cpuinit cpu_init(void) | |||
1136 | wrmsrl(MSR_KERNEL_GS_BASE, 0); | 1136 | wrmsrl(MSR_KERNEL_GS_BASE, 0); |
1137 | barrier(); | 1137 | barrier(); |
1138 | 1138 | ||
1139 | check_efer(); | 1139 | x86_configure_nx(); |
1140 | if (cpu != 0) | 1140 | if (cpu != 0) |
1141 | enable_x2apic(); | 1141 | enable_x2apic(); |
1142 | 1142 | ||
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 0a6e94ab8339..23b7f46bf843 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -787,21 +787,17 @@ void __init setup_arch(char **cmdline_p) | |||
787 | strlcpy(command_line, boot_command_line, COMMAND_LINE_SIZE); | 787 | strlcpy(command_line, boot_command_line, COMMAND_LINE_SIZE); |
788 | *cmdline_p = command_line; | 788 | *cmdline_p = command_line; |
789 | 789 | ||
790 | #ifdef CONFIG_X86_64 | ||
791 | /* | 790 | /* |
792 | * Must call this twice: Once just to detect whether hardware doesn't | 791 | * Must call this twice: Once just to detect whether hardware doesn't |
793 | * support NX (so that the early EHCI debug console setup can safely | 792 | * support NX (so that the early EHCI debug console setup can safely |
794 | * call set_fixmap(), and then again after parsing early parameters to | 793 | * call set_fixmap(), and then again after parsing early parameters to |
795 | * honor the respective command line option. | 794 | * honor the respective command line option. |
796 | */ | 795 | */ |
797 | check_efer(); | 796 | x86_configure_nx(); |
798 | #endif | ||
799 | 797 | ||
800 | parse_early_param(); | 798 | parse_early_param(); |
801 | 799 | ||
802 | #ifdef CONFIG_X86_64 | 800 | x86_configure_nx(); |
803 | check_efer(); | ||
804 | #endif | ||
805 | 801 | ||
806 | /* Must be before kernel pagetables are setup */ | 802 | /* Must be before kernel pagetables are setup */ |
807 | vmi_activate(); | 803 | vmi_activate(); |