diff options
-rw-r--r-- | include/linux/interrupt.h | 6 | ||||
-rw-r--r-- | include/linux/irq.h | 3 | ||||
-rw-r--r-- | init/main.c | 10 | ||||
-rw-r--r-- | kernel/irq/manage.c | 9 | ||||
-rw-r--r-- | kernel/softirq.c | 20 |
5 files changed, 26 insertions, 22 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index 777f89e00b4..d9a370325ae 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h | |||
@@ -467,4 +467,10 @@ static inline void init_irq_proc(void) | |||
467 | 467 | ||
468 | int show_interrupts(struct seq_file *p, void *v); | 468 | int show_interrupts(struct seq_file *p, void *v); |
469 | 469 | ||
470 | struct irq_desc; | ||
471 | |||
472 | extern int early_irq_init(void); | ||
473 | extern int arch_early_irq_init(void); | ||
474 | extern int arch_init_chip_data(struct irq_desc *desc, int cpu); | ||
475 | |||
470 | #endif | 476 | #endif |
diff --git a/include/linux/irq.h b/include/linux/irq.h index 0e40af4bac4..d64a6d49bde 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h | |||
@@ -193,9 +193,6 @@ struct irq_desc { | |||
193 | const char *name; | 193 | const char *name; |
194 | } ____cacheline_internodealigned_in_smp; | 194 | } ____cacheline_internodealigned_in_smp; |
195 | 195 | ||
196 | extern int early_irq_init(void); | ||
197 | extern int arch_early_irq_init(void); | ||
198 | extern int arch_init_chip_data(struct irq_desc *desc, int cpu); | ||
199 | extern void arch_init_copy_chip_data(struct irq_desc *old_desc, | 196 | extern void arch_init_copy_chip_data(struct irq_desc *old_desc, |
200 | struct irq_desc *desc, int cpu); | 197 | struct irq_desc *desc, int cpu); |
201 | extern void arch_free_chip_data(struct irq_desc *old_desc, struct irq_desc *desc); | 198 | extern void arch_free_chip_data(struct irq_desc *old_desc, struct irq_desc *desc); |
diff --git a/init/main.c b/init/main.c index c314aa15370..2c183abbf61 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -539,16 +539,6 @@ void __init __weak thread_info_cache_init(void) | |||
539 | { | 539 | { |
540 | } | 540 | } |
541 | 541 | ||
542 | int __init __weak arch_early_irq_init(void) | ||
543 | { | ||
544 | return 0; | ||
545 | } | ||
546 | |||
547 | int __init __weak early_irq_init(void) | ||
548 | { | ||
549 | return arch_early_irq_init(); | ||
550 | } | ||
551 | |||
552 | asmlinkage void __init start_kernel(void) | 542 | asmlinkage void __init start_kernel(void) |
553 | { | 543 | { |
554 | char * command_line; | 544 | char * command_line; |
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index c2741b02ad3..46953a06f4a 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c | |||
@@ -261,15 +261,6 @@ void enable_irq(unsigned int irq) | |||
261 | } | 261 | } |
262 | EXPORT_SYMBOL(enable_irq); | 262 | EXPORT_SYMBOL(enable_irq); |
263 | 263 | ||
264 | /* | ||
265 | * [ Not in kernel/irq/handle.c, so that GCC does not | ||
266 | * inline the __weak alias: ] | ||
267 | */ | ||
268 | int __weak arch_init_chip_data(struct irq_desc *desc, int cpu) | ||
269 | { | ||
270 | return 0; | ||
271 | } | ||
272 | |||
273 | static int set_irq_wake_real(unsigned int irq, unsigned int on) | 264 | static int set_irq_wake_real(unsigned int irq, unsigned int on) |
274 | { | 265 | { |
275 | struct irq_desc *desc = irq_to_desc(irq); | 266 | struct irq_desc *desc = irq_to_desc(irq); |
diff --git a/kernel/softirq.c b/kernel/softirq.c index e7c69a720d6..daf46358d2d 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c | |||
@@ -797,3 +797,23 @@ int on_each_cpu(void (*func) (void *info), void *info, int wait) | |||
797 | } | 797 | } |
798 | EXPORT_SYMBOL(on_each_cpu); | 798 | EXPORT_SYMBOL(on_each_cpu); |
799 | #endif | 799 | #endif |
800 | |||
801 | /* | ||
802 | * [ These __weak aliases are kept in a separate compilation unit, so that | ||
803 | * GCC does not inline them incorrectly. ] | ||
804 | */ | ||
805 | |||
806 | int __init __weak early_irq_init(void) | ||
807 | { | ||
808 | return 0; | ||
809 | } | ||
810 | |||
811 | int __init __weak arch_early_irq_init(void) | ||
812 | { | ||
813 | return 0; | ||
814 | } | ||
815 | |||
816 | int __weak arch_init_chip_data(struct irq_desc *desc, int cpu) | ||
817 | { | ||
818 | return 0; | ||
819 | } | ||