• Ingo Molnar's avatar
    x86/fpu: Move fpu_alloc() out of line · 6fbe6712
    Ingo Molnar authored
    This is not a small function, and it's used in several places,
    one of them a popular module (KVM).
    
    Move the function out of line. This saves a bit of text,
    even with the symbol export overhead:
    
       text    data     bss     dec     hex filename
       12566052        1619504 1089536 15275092         e91454 vmlinux.before
       12566046        1619504 1089536 15275086         e9144e vmlinux.after
    Reviewed-by: default avatarBorislav 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: default avatarIngo Molnar <mingo@kernel.org>
    6fbe6712
fpu-internal.h 15.6 KB