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)
commitbced35b65aefe53a6f77a9ed0ce1aea86e9d65a2
tree9a07fcff24c833c92146cfccfa4f7ab580913518
parent83653c16da91112236292871b820cb8b367220e3
x86, traps: Add ist_begin_non_atomic and ist_end_non_atomic

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