From: Borislav Petkov <bp@suse.de>
To: Alexander Kuleshov <kuleshovmail@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, "H . Peter Anvin" <hpa@zytor.com>,
x86@kernel.org, Andy Lutomirski <luto@kernel.org>,
Denys Vlasenko <dvlasenk@redhat.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] x86/traps.c: refactor preemption and interrupt flag handling
Date: Sun, 17 Jan 2016 18:48:44 +0100 [thread overview]
Message-ID: <20160117174844.GD8549@pd.tnic> (raw)
In-Reply-To: <1453036184-15077-1-git-send-email-kuleshovmail@gmail.com>
On Sun, Jan 17, 2016 at 07:09:44PM +0600, Alexander Kuleshov wrote:
> The arch/x86/kernel/traps.c contains definition of two pair of helpers
> conditional_{sti,cli} to enable/disable interrupts depends on state of
> the interrupt flag and *preempt* versions of these helpers.
>
> This patch tries to make the preemption and interrupt flag handling more
> readable by removing preempt_conditional_sti() and
> preempt_conditional_cli() helpers and usage preempt_disable() and
> preempt_enable_no_resched() for preemption in place, instead of these helpers.
>
> The contitional_sti() and conditional_cli() are renamed to more understandable
> names: cond_local_irq_enable() and cond_local_irq_disable() respectively. So
> so that one doesn't have to go and lookup the function definition when
> looking at the code flow.
>
> Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
> Suggested-by: Borislav Petkov <bp@suse.de>
> ---
> Changelog v2:
> 1. Use preempt_enable_no_resched() instead of sched_preempt_enable_no_resched()
>
> arch/x86/kernel/traps.c | 47 +++++++++++++++++++----------------------------
> 1 file changed, 19 insertions(+), 28 deletions(-)
Applied, thanks.
--
Regards/Gruss,
Boris.
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
--
prev parent reply other threads:[~2016-01-17 17:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-17 13:09 [PATCH v2] x86/traps.c: refactor preemption and interrupt flag handling Alexander Kuleshov
2016-01-17 17:48 ` Borislav Petkov [this message]
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=20160117174844.GD8549@pd.tnic \
--to=bp@suse.de \
--cc=dvlasenk@redhat.com \
--cc=hpa@zytor.com \
--cc=kuleshovmail@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--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.