OSDN Git Service

x86/fpu: Rename init_fpu() to fpu__unlazy_stopped() and add debugging check
authorIngo Molnar <mingo@kernel.org>
Fri, 3 Apr 2015 10:21:03 +0000 (12:21 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:47:11 +0000 (15:47 +0200)
commit67e97fc2ec575adaacca296834f9ea0e1e34b563
tree11b0941a03a8be9c431141b5a55f5429b0e4dcac
parentbda283796b38baae3ec5c8c788b143b1fb9dcc77
x86/fpu: Rename init_fpu() to fpu__unlazy_stopped() and add debugging check

This function name is a misnomer now that we've split out all the
other users from it. Rename it accordingly: it's used to save
the FPU state of (ptrace-)stopped child tasks.

Add debugging check to double check this intended usage: that this
function is only called for non-current, stopped child tasks.

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