x86/fpu: Move debugging check from kernel_fpu_begin() to __kernel_fpu_begin()
authorIngo Molnar <mingo@kernel.org>
Fri, 1 May 2015 08:54:22 +0000 (10:54 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:48:10 +0000 (15:48 +0200)
commit63c6680cd09b8803f428ec606d764229cb78eca6
tree17589afa9b7f6b1d3a8491db0f811a1e70db30f3
parentbdf80d104021d3405e5ec8ecc08f189b74ae022a
x86/fpu: Move debugging check from kernel_fpu_begin() to __kernel_fpu_begin()

kernel_fpu_begin() is __kernel_fpu_begin() with a preempt_disable().

Move the kernel_fpu_begin() debugging check into __kernel_fpu_begin(),
so that users of __kernel_fpu_begin() may benefit from it as well.

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/kernel/fpu/core.c