x86/fpu: Uninline the irq_ts_save()/restore() functions
authorIngo Molnar <mingo@kernel.org>
Sun, 26 Apr 2015 14:57:55 +0000 (16:57 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 19 May 2015 13:47:48 +0000 (15:47 +0200)
commit910665882fc00dc5bab0f846fe707174ff289615
treea0b566b838040db9d8cae08cc2f3738fbc9881c9
parent952f07ecbd4d9bac77c003ba136f8ee8ce631591
x86/fpu: Uninline the irq_ts_save()/restore() functions

Especially the irq_ts_save() function is pretty bloaty, generating
over a dozen instructions, so uninline them.

Even though the API is used rarely, the space savings are measurable:

   text    data     bss     dec     hex filename
   13331995        2572920 1634304 17539219        10ba093 vmlinux.before
   13331739        2572920 1634304 17538963        10b9f93 vmlinux.after

( This also allows the removal of an include file inclusion from fpu/api.h,
  speeding up the kernel build slightly. )

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/include/asm/fpu/api.h
arch/x86/kernel/fpu/core.c