From: Dominik Brodowski <linux@dominikbrodowski.net>
To: linux-kernel@vger.kernel.org, mingo@kernel.org, x86@kernel.org
Cc: torvalds@linux-foundation.org, luto@kernel.org,
ak@linux.intel.com, tglx@linutronix.de, dan.j.williams@intel.com
Subject: [RFC PATCH 0/4] x86/entry/64: interrupt entry size reduction
Date: Wed, 14 Feb 2018 19:21:09 +0100 [thread overview]
Message-ID: <20180214182113.27247-1-linux@dominikbrodowski.net> (raw)
This patchset applies on top of the two other tip/pti-related patches
I sent out moments ago,[*] and try to implement what Linus suggested a
few days ago[+].
[+] http://lkml.kernel.org/r/20180214175924.23065-1-linux@dominikbrodowski.net
[*] http://lkml.kernel.org/r/CA+55aFwLTF3EtaQ4OpDv2UM41J=EU7gfemv=eVq+uQi31-usSg@mail.gmail.com .
Overall, these patches provide for a sizeable cutting of up to 4.35k:
text data bss dec hex filename
20987 0 0 20987 51fb entry_64.o-orig
16621 0 0 16621 40ed entry_64.o
They are split up in four small steps to easen the review. Another
advantage is that we can decide whether each additional step is really
worth it in relation to an increase in code complexity.
NOTE / WARNING: As usual, please be extremely stringent in reviewing these
patches.
Thanks,
Dominik
Dominik Brodowski (4):
x86/entry/64: move PUSH_AND_CLEAR_REGS from interrupt macro to helper
function
x86/entry/64: move ENTER_IRQ_STACK from interrupt macro to helper
function
x86/entry/64: move switch_to_thread_stack to interrupt helper function
x86/entry/64: remove interrupt macro
arch/x86/entry/entry_64.S | 99 +++++++++++++++++++++++++++++------------------
1 file changed, 62 insertions(+), 37 deletions(-)
--
2.16.1
next reply other threads:[~2018-02-14 18:22 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-14 18:21 Dominik Brodowski [this message]
2018-02-14 18:21 ` [RFC PATCH 1/4] x86/entry/64: move PUSH_AND_CLEAR_REGS from interrupt macro to helper function Dominik Brodowski
2018-02-14 18:21 ` [RFC PATCH 2/4] x86/entry/64: move ENTER_IRQ_STACK " Dominik Brodowski
2018-02-14 18:36 ` Brian Gerst
2018-02-15 0:17 ` Andy Lutomirski
2018-02-15 0:48 ` Brian Gerst
2018-02-15 3:11 ` Andy Lutomirski
2018-02-15 13:45 ` Brian Gerst
2018-02-14 18:21 ` [RFC PATCH 3/4] x86/entry/64: move switch_to_thread_stack to interrupt " Dominik Brodowski
2018-02-14 18:57 ` Brian Gerst
2018-02-14 19:06 ` Dominik Brodowski
2018-02-14 19:27 ` Brian Gerst
2018-02-14 18:21 ` [RFC PATCH 4/4] x86/entry/64: remove interrupt macro Dominik Brodowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180214182113.27247-1-linux@dominikbrodowski.net \
--to=linux@dominikbrodowski.net \
--cc=ak@linux.intel.com \
--cc=dan.j.williams@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=mingo@kernel.org \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.