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

Denys Vlasenko
2015-03-30T18:10:18Z

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(-)