x86/fpu: Add debugging check to fpu__save()
authorIngo Molnar <mingo@kernel.org>
Fri, 3 Apr 2015 09:06:43 +0000 (11:06 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:47:10 +0000 (15:47 +0200)
commit87cdb98affe54b6f390f4622b254569b90820817
tree49a705a48f5882bf752366ff28b406da3ea0700a
parent4af08f2f47f0ed3c48e557ac47ed2ae616d6866b
x86/fpu: Add debugging check to fpu__save()

Document the function a bit more and add debugging check that we are only
running this with the current task.

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/i387.c