]> git.baikalelectronics.ru Git - kernel.git/commit
x86/entry/traps: Refactor preemption and interrupt flag handling
authorAlexander Kuleshov <kuleshovmail@gmail.com>
Mon, 25 Jan 2016 19:41:46 +0000 (20:41 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 1 Feb 2016 09:45:14 +0000 (10:45 +0100)
commitcebdc2fba485c403b540fe9fcfe53b895972fb73
tree14aa5d1e624e2b252b1959e703c9b0b934059113
parent69ac65f03a814fdf3e78b3e7042809b2f54e880c
x86/entry/traps: Refactor preemption and interrupt flag handling

Make the preemption and interrupt flag handling more readable by
removing preempt_conditional_sti() and preempt_conditional_cli()
helpers and using preempt_disable() and
preempt_enable_no_resched() instead.

Rename contitional_sti() and conditional_cli() to the more
understandable cond_local_irq_enable() and
cond_local_irq_disable() respectively, while at it.

Suggested-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
[ Boris: massage text. ]
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: H Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/1453750913-4781-2-git-send-email-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/traps.c