提交 3e8f7e35 编写于 作者: I Ingo Molnar

x86 VISWS: build fix

the 'reboot_force' flag is a notion that non-PC subarchitectures do
not have.

also, unify the X86_BIOS_REBOOT option between 32-bit and 64-bit
and get rid of a few unnecessary Kconfig and Makefile complications
that way.
Signed-off-by: NIngo Molnar <mingo@elte.hu>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
上级 ed5e2332
...@@ -180,7 +180,7 @@ config X86_HT ...@@ -180,7 +180,7 @@ config X86_HT
config X86_BIOS_REBOOT config X86_BIOS_REBOOT
bool bool
depends on X86_32 && !(X86_VISWS || X86_VOYAGER) depends on !X86_VISWS && !X86_VOYAGER
default y default y
config X86_TRAMPOLINE config X86_TRAMPOLINE
...@@ -1161,7 +1161,7 @@ source kernel/Kconfig.hz ...@@ -1161,7 +1161,7 @@ source kernel/Kconfig.hz
config KEXEC config KEXEC
bool "kexec system call" bool "kexec system call"
depends on X86_64 || X86_BIOS_REBOOT depends on X86_BIOS_REBOOT
help help
kexec is a system call that implements the ability to shutdown your kexec is a system call that implements the ability to shutdown your
current kernel, and to start another kernel. It is like a reboot current kernel, and to start another kernel. It is like a reboot
......
...@@ -40,7 +40,6 @@ obj-$(CONFIG_STACKTRACE) += stacktrace.o ...@@ -40,7 +40,6 @@ obj-$(CONFIG_STACKTRACE) += stacktrace.o
obj-y += cpu/ obj-y += cpu/
obj-y += acpi/ obj-y += acpi/
obj-$(CONFIG_X86_BIOS_REBOOT) += reboot.o obj-$(CONFIG_X86_BIOS_REBOOT) += reboot.o
obj-$(CONFIG_X86_64) += reboot.o
obj-$(CONFIG_MCA) += mca_32.o obj-$(CONFIG_MCA) += mca_32.o
obj-$(CONFIG_X86_MSR) += msr.o obj-$(CONFIG_X86_MSR) += msr.o
obj-$(CONFIG_X86_CPUID) += cpuid.o obj-$(CONFIG_X86_CPUID) += cpuid.o
......
...@@ -20,7 +20,11 @@ extern void syscall32_cpu_init(void); ...@@ -20,7 +20,11 @@ extern void syscall32_cpu_init(void);
extern void check_efer(void); extern void check_efer(void);
#ifdef CONFIG_X86_BIOS_REBOOT
extern int reboot_force; extern int reboot_force;
#else
static const int reboot_force = 0;
#endif
long do_arch_prctl(struct task_struct *task, int code, unsigned long addr); long do_arch_prctl(struct task_struct *task, int code, unsigned long addr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册