x86/asm/entry: Replace some open-coded VM86 checks with v8086_mode() checks
authorAndy Lutomirski <luto@kernel.org>
Thu, 19 Mar 2015 01:33:35 +0000 (18:33 -0700)
committerIngo Molnar <mingo@kernel.org>
Mon, 23 Mar 2015 10:14:40 +0000 (11:14 +0100)
commitd74ef1118a146ae1135c8b26fff2bfee980fd7a4
treeb1c4034748ba4fe8450deb9980d576f02f89d24b
parent7a2806741e7327a6b20ccef42e8d56588cb2fef5
x86/asm/entry: Replace some open-coded VM86 checks with v8086_mode() checks

This allows us to remove some unnecessary ifdefs.  There should
be no change to the generated code.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brad Spengler <spender@grsecurity.net>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/f7e00f0d668e253abf0bd8bf36491ac47bd761ff.1426728647.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/traps.c