x86/fpu: Move all the fpu__*() high level methods closer to each other
authorIngo Molnar <mingo@kernel.org>
Wed, 29 Apr 2015 18:24:14 +0000 (20:24 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:48:04 +0000 (15:48 +0200)
commit6ffc152e4606c7f9149940d36a83e786f7f0a4f9
tree613b2c361cba2334ab89319ae723756a9f955da0
parent0e75c54f1703e83e6cdf239491bf7294f6c34777
x86/fpu: Move all the fpu__*() high level methods closer to each other

The fpu__*() methods are closely related, but they are defined
in scattered places within the FPU code.

Concentrate them, and also uninline fpu__save(), fpu__drop()
and fpu__reset() to save about 5K of kernel text on 64-bit kernels:

   text            data    bss     dec        filename
   14113063        2575280 1634304 18322647   vmlinux.before
   14108070        2575280 1634304 18317654   vmlinux.after

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