diff options
Diffstat (limited to 'arch/x86/kernel/setup.c')
-rw-r--r-- | arch/x86/kernel/setup.c | 8 |
1 files changed, 2 insertions, 6 deletions
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(); |