x86, traps: Add ist_begin_non_atomic and ist_end_non_atomic
authorAndy Lutomirski <luto@amacapital.net>
Thu, 20 Nov 2014 01:59:41 +0000 (17:59 -0800)
committerAndy Lutomirski <luto@amacapital.net>
Fri, 2 Jan 2015 18:22:46 +0000 (10:22 -0800)
In some IST handlers, if the interrupt came from user mode,
we can safely enable preemption.  Add helpers to do it safely.

This is intended to be used my the memory failure code in
do_machine_check.

Acked-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
arch/x86/include/asm/traps.h
arch/x86/kernel/traps.c

Simple merge
Simple merge