x86/fpu: Add kernel_fpu_disabled()
authorIngo Molnar <mingo@kernel.org>
Wed, 22 Apr 2015 14:52:03 +0000 (16:52 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:47:21 +0000 (15:47 +0200)
commit085cc281a04633761bac361f26dcee2800d58077
tree7f13fc90dbd271e254b0f7fc8626c0a39482aa55
parent3103ae3a6d3e66d51bb883bb17b55574e163b77d
x86/fpu: Add kernel_fpu_disabled()

Instead of open-coded in_kernel_fpu access, Use kernel_fpu_disabled() in
interrupted_kernel_fpu_idle(), matching the other kernel_fpu_*() methods.

Also add some documentation for in_kernel_fpu.

Reviewed-by: Borislav Petkov <bp@alien8.de>
Cc: Andy Lutomirski <luto@amacapital.net>
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/kernel/fpu/core.c