From: Andy Lutomirski Date: Thu, 19 Mar 2015 01:33:30 +0000 (-0700) Subject: x86/asm/entry, perf: Explicitly optimize vm86 handling in code_segment_base() X-Git-Tag: omap-for-v4.1/fixes-rc1~195^2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=383f3af3f88aadafe1fcf1948987ad538683fb8c;p=pandora-kernel.git x86/asm/entry, perf: Explicitly optimize vm86 handling in code_segment_base() There's no point in checking the VM bit on 64-bit, and, since we're explicitly checking it, we can use user_mode_ignore_vm86() after the check. While we're at it, rearrange the #ifdef slightly to make the code flow a bit clearer. Signed-off-by: Andy Lutomirski Cc: Borislav Petkov Cc: Brad Spengler Cc: Denys Vlasenko Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/dc1457a734feccd03a19bb3538a7648582f57cdd.1426728647.git.luto@kernel.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed