Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1311169
| From | Borislav Petkov <bp@suse.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] x86/traps.c: refactor preemption and interrupt flag handling |
| Date | 2016-01-17 19:00 +0100 |
| Message-ID | <qRZMm-5Co-9@gated-at.bofh.it> (permalink) |
| References | <qRVpo-2VW-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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)
--
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v2] x86/traps.c: refactor preemption and interrupt flag handling Alexander Kuleshov <kuleshovmail@gmail.com> - 2016-01-17 14:20 +0100 Re: [PATCH v2] x86/traps.c: refactor preemption and interrupt flag handling Borislav Petkov <bp@suse.de> - 2016-01-17 19:00 +0100
csiph-web