This patchset simplifies jump maze in entry_64.S a bit by moving
"retint_kernel" code block, and follows up with simplifications
which become obvious after the move.

Two labels and one define is gone
One label is no longer .global
One redundand DISABLE_INTERRUPTS is gone
A few jump and test instructions use shorter forms now

   text           data     bss     dec     hex filename
  12706              0       0   12706    31a2 entry_64.o.before
  12658              0       0   12658    3172 entry_64.o

Patchset was run-tested (running it while writing this).

Denys Vlasenko (5):
  x86/asm/entry/64: move retint_kernel code block closer to its user
  x86/asm/entry/64: simplify retint_kernel label usage, make
    retint_restore_args label local
  x86/asm/entry/64: remove redundant DISABLE_INTERRUPTS
  x86/asm/entry/64: do not GET_THREAD_INFO() too early
  x86/asm/entry/64: drop exit_intr label

 arch/x86/kernel/entry_64.S | 40 +++++++++++++++++-----------------------
 1 file changed, 17 insertions(+), 23 deletions(-)
---
CC: Linus Torvalds <torva...@linux-foundation.org>
CC: Steven Rostedt <rost...@goodmis.org>
CC: Ingo Molnar <mi...@kernel.org>
CC: Borislav Petkov <b...@alien8.de>
CC: "H. Peter Anvin" <h...@zytor.com>
CC: Andy Lutomirski <l...@amacapital.net>
CC: Oleg Nesterov <o...@redhat.com>
CC: Frederic Weisbecker <fweis...@gmail.com>
CC: Alexei Starovoitov <a...@plumgrid.com>
CC: Will Drewry <w...@chromium.org>
CC: Kees Cook <keesc...@chromium.org>
CC: x...@kernel.org
CC: linux-kernel@vger.kernel.org

-- 
1.8.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to