diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-04-22 16:33:08 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-05-19 15:47:20 +0200 |
commit | 416d49ac67ae3af8c98ecee2ebe0a883b95e213a (patch) | |
tree | 2efb7f149c6ea7a9a1eac4bbcd63f380a41ca2f9 /arch/x86/include/asm/i387.h | |
parent | f55f88e25e9b5232054a82d47de7aaf67179b78b (diff) | |
download | linux-416d49ac67ae3af8c98ecee2ebe0a883b95e213a.tar.gz linux-416d49ac67ae3af8c98ecee2ebe0a883b95e213a.tar.bz2 linux-416d49ac67ae3af8c98ecee2ebe0a883b95e213a.zip |
x86/fpu: Make kernel_fpu_disable/enable() static
This allows the compiler to inline them and to eliminate them:
arch/x86/kernel/fpu/core.o:
text data bss dec hex filename
6741 4 8 6753 1a61 core.o.before
6716 4 8 6728 1a48 core.o.after
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>
Diffstat (limited to 'arch/x86/include/asm/i387.h')
-rw-r--r-- | arch/x86/include/asm/i387.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/x86/include/asm/i387.h b/arch/x86/include/asm/i387.h index 89ae3e051741..e69989f95da5 100644 --- a/arch/x86/include/asm/i387.h +++ b/arch/x86/include/asm/i387.h @@ -54,10 +54,6 @@ static inline void kernel_fpu_end(void) preempt_enable(); } -/* Must be called with preempt disabled */ -extern void kernel_fpu_disable(void); -extern void kernel_fpu_enable(void); - /* * Some instructions like VIA's padlock instructions generate a spurious * DNA fault but don't modify SSE registers. And these instructions |