Commit d786ad32 authored by Denys Vlasenko's avatar Denys Vlasenko Committed by Thomas Gleixner

x86/apic: Deinline various functions

__x2apic_disable: 178 bytes, 3 calls
__x2apic_enable: 117 bytes, 3 calls
__smp_spurious_interrupt: 110 bytes, 2 calls
__smp_error_interrupt: 208 bytes, 2 calls

Reduces code size by about 850 bytes.
Signed-off-by: default avatarDenys Vlasenko <dvlasenk@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Andy Lutomirski <luto@amacapital.net>
Link: http://lkml.kernel.org/r/1443559022-23793-1-git-send-email-dvlasenk@redhat.comSigned-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent ef34cc34
...@@ -1431,7 +1431,7 @@ enum { ...@@ -1431,7 +1431,7 @@ enum {
}; };
static int x2apic_state; static int x2apic_state;
static inline void __x2apic_disable(void) static void __x2apic_disable(void)
{ {
u64 msr; u64 msr;
...@@ -1447,7 +1447,7 @@ static inline void __x2apic_disable(void) ...@@ -1447,7 +1447,7 @@ static inline void __x2apic_disable(void)
printk_once(KERN_INFO "x2apic disabled\n"); printk_once(KERN_INFO "x2apic disabled\n");
} }
static inline void __x2apic_enable(void) static void __x2apic_enable(void)
{ {
u64 msr; u64 msr;
...@@ -1807,7 +1807,7 @@ int apic_version[MAX_LOCAL_APIC]; ...@@ -1807,7 +1807,7 @@ int apic_version[MAX_LOCAL_APIC];
/* /*
* This interrupt should _never_ happen with our APIC/SMP architecture * This interrupt should _never_ happen with our APIC/SMP architecture
*/ */
static inline void __smp_spurious_interrupt(u8 vector) static void __smp_spurious_interrupt(u8 vector)
{ {
u32 v; u32 v;
...@@ -1848,7 +1848,7 @@ __visible void smp_trace_spurious_interrupt(struct pt_regs *regs) ...@@ -1848,7 +1848,7 @@ __visible void smp_trace_spurious_interrupt(struct pt_regs *regs)
/* /*
* This interrupt should never happen with our APIC/SMP architecture * This interrupt should never happen with our APIC/SMP architecture
*/ */
static inline void __smp_error_interrupt(struct pt_regs *regs) static void __smp_error_interrupt(struct pt_regs *regs)
{ {
u32 v; u32 v;
u32 i = 0; u32 i = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment