Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86: Remove more unmodified io_apic_ops

io_apic_ops.init() is either NULL, if IO-APIC support is disabled at
compile time or native_io_apic_init_mappings(). No point to have that
as we can achieve the same thing with an empty inline.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

+5 -8
+3 -3
arch/x86/include/asm/io_apic.h
··· 206 206 207 207 extern void disable_ioapic_support(void); 208 208 209 - extern void __init native_io_apic_init_mappings(void); 209 + extern void __init io_apic_init_mappings(void); 210 210 extern unsigned int native_io_apic_read(unsigned int apic, unsigned int reg); 211 211 extern void native_disable_io_apic(void); 212 212 ··· 251 251 return -ENOMEM; 252 252 } 253 253 254 - static inline void mp_save_irq(struct mpc_intsrc *m) { }; 254 + static inline void mp_save_irq(struct mpc_intsrc *m) { } 255 255 static inline void disable_ioapic_support(void) { } 256 - #define native_io_apic_init_mappings NULL 256 + static inline void io_apic_init_mappings(void) { } 257 257 #define native_io_apic_read NULL 258 258 #define native_disable_io_apic NULL 259 259
-1
arch/x86/include/asm/x86_init.h
··· 180 180 }; 181 181 182 182 struct x86_io_apic_ops { 183 - void (*init) (void); 184 183 unsigned int (*read) (unsigned int apic, unsigned int reg); 185 184 void (*disable)(void); 186 185 };
+1 -1
arch/x86/kernel/apic/io_apic.c
··· 2687 2687 return res; 2688 2688 } 2689 2689 2690 - void __init native_io_apic_init_mappings(void) 2690 + void __init io_apic_init_mappings(void) 2691 2691 { 2692 2692 unsigned long ioapic_phys, idx = FIX_IO_APIC_BASE_0; 2693 2693 struct resource *ioapic_res;
+1 -2
arch/x86/kernel/setup.c
··· 1222 1222 init_cpu_to_node(); 1223 1223 1224 1224 init_apic_mappings(); 1225 - if (x86_io_apic_ops.init) 1226 - x86_io_apic_ops.init(); 1225 + io_apic_init_mappings(); 1227 1226 1228 1227 kvm_guest_init(); 1229 1228
-1
arch/x86/kernel/x86_init.c
··· 139 139 #endif 140 140 141 141 struct x86_io_apic_ops x86_io_apic_ops = { 142 - .init = native_io_apic_init_mappings, 143 142 .read = native_io_apic_read, 144 143 .disable = native_disable_io_apic, 145 144 };