[PATCH 0/5] x86/asm/entry/64: simplifications

From: Denys Vlasenko
Date: Mon Mar 30 2015 - 14:10:22 EST


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 <torvalds@xxxxxxxxxxxxxxxxxxxx>
CC: Steven Rostedt <rostedt@xxxxxxxxxxx>
CC: Ingo Molnar <mingo@xxxxxxxxxx>
CC: Borislav Petkov <bp@xxxxxxxxx>
CC: "H. Peter Anvin" <hpa@xxxxxxxxx>
CC: Andy Lutomirski <luto@xxxxxxxxxxxxxx>
CC: Oleg Nesterov <oleg@xxxxxxxxxx>
CC: Frederic Weisbecker <fweisbec@xxxxxxxxx>
CC: Alexei Starovoitov <ast@xxxxxxxxxxxx>
CC: Will Drewry <wad@xxxxxxxxxxxx>
CC: Kees Cook <keescook@xxxxxxxxxxxx>
CC: x86@xxxxxxxxxx
CC: linux-kernel@xxxxxxxxxxxxxxx

--
1.8.1.4

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