x86/traps: Separate set_intr_gate() and clean up early_trap_init()
authorWang Nan <wangnan0@huawei.com>
Fri, 27 Feb 2015 04:19:49 +0000 (12:19 +0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 4 Mar 2015 23:47:29 +0000 (00:47 +0100)
commit5eca7453d61003bf886992388f8cb407e6f0d051
tree3a01bfd9e879d81b185275e5774b418c2f7af487
parent1e3fbb8a1d814f35e2e689cf87714d38d9f3564d
x86/traps: Separate set_intr_gate() and clean up early_trap_init()

As early_trap_init() doesn't use IST, replace
set_intr_gate_ist() and set_system_intr_gate_ist() with their
standard counterparts.

set_intr_gate() requires a trace_debug symbol which we don't
have and won't use. This patch separates set_intr_gate() into two
parts, and uses base version in early_trap_init().

Reported-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Wang Nan <wangnan0@huawei.com>
Acked-by: Andy Lutomirski <luto@amacapital.net>
Cc: <dave.hansen@linux.intel.com>
Cc: <lizefan@huawei.com>
Cc: <masami.hiramatsu.pt@hitachi.com>
Cc: <oleg@redhat.com>
Cc: <rostedt@goodmis.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1425010789-13714-1-git-send-email-wangnan0@huawei.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/desc.h
arch/x86/kernel/traps.c