x86/apic: Deinline __x2apic_en/disable, __smp_spurious/error_interrupt
PATCH 1/1 x86/apic: Deinline __x2apic_en/disable, __smp_spurious/error_interrupt
From: root <[email protected]>
__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.
--- arch/x86/kernel/apic/apic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/apic/apic.c +4 -4
@@ -1431,7 +1431,7 @@ enum { };static int x2apic_state; -static inline void __x2apic_disable (void ) +static void __x2apic_disable (void ) {u64 msr;
@@ -1447,7 +1447,7 @@ static inline void __x2apic_disable(void)printk_once (KERN_INFO "x2apic disabled\n" ); } -static inline void __x2apic_enable (void ) +static void __x2apic_enable (void ) {u64 msr;
@@ -1807,7 +1807,7 @@ int apic_version[MAX_LOCAL_APIC];/* * 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;
@@ -1848,7 +1848,7 @@ __visible void smp_trace_spurious_interrupt(struct pt_regs *regs)/* * 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 i =0 ;
Quoted 1 line · Denys Vlasenko
From: root <[email protected]>
Interesting patch author that.
Quoted 1 line
__x2apic_disable: 178 bytes, 3 calls
That superseeds your other patch which just touched __x2apic_disable. Bah, I just queued that and added the __x2apic_enable part myself. There would have been nothing wrong to actually send a delta patch in reply to the other one...
Thanks,
tglx
Quoted 5 lines · Thomas Gleixner
Quoted 1 line · Denys Vlasenko
From: root <[email protected]>
Interesting patch author that.
Oops. :)
tip-bot for Denys Vlasenko
merge bot[tip:x86/apic] x86/apic: Deinline various functions
In reply to Denys Vlasenkox86/apic: Deinline various functions
Commit-ID: d786ad32c305ca0f6be1924558866fe9f901e291 Gitweb: http://git.kernel.org/tip/d786ad32c305ca0f6be1924558866fe9f901e291 Author: Denys Vlasenko <[email protected]> AuthorDate: Tue, 29 Sep 2015 22:37:02 +0200 Committer: Thomas Gleixner <[email protected]> CommitDate: Wed, 30 Sep 2015 21:15:53 +0200
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.
--- arch/x86/kernel/apic/apic.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
arch/x86/kernel/apic/apic.c +4 -4
@@ -1431,7 +1431,7 @@ enum { };static int x2apic_state; -static inline void __x2apic_disable (void ) +static void __x2apic_disable (void ) {u64 msr;
@@ -1447,7 +1447,7 @@ static inline void __x2apic_disable(void)printk_once (KERN_INFO "x2apic disabled\n" ); } -static inline void __x2apic_enable (void ) +static void __x2apic_enable (void ) {u64 msr;
@@ -1807,7 +1807,7 @@ int apic_version[MAX_LOCAL_APIC];/* * 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;
@@ -1848,7 +1848,7 @@ __visible void smp_trace_spurious_interrupt(struct pt_regs *regs)/* * 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 i =0 ;