x86/fpu: Factor out the exception error code handling code
authorIngo Molnar <mingo@kernel.org>
Thu, 30 Apr 2015 07:29:38 +0000 (09:29 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:48:06 +0000 (15:48 +0200)
commite1cebad49c54e0241e101ebf63d5238fe1137749
tree8896836c0c576ff4ea58ff11cb509b4e32498751
parentacd58a3ad0ed5875fb88bbb078309a3d7ee147a0
x86/fpu: Factor out the exception error code handling code

Factor out the FPU error code handling code from traps.c and fpu/internal.h
and move them close to each other.

Also convert the helper functions to 'struct fpu *', which further simplifies
them.

Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/fpu/internal.h
arch/x86/kernel/fpu/core.c
arch/x86/kernel/traps.c