aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/irq/manage.c9
-rw-r--r--kernel/softirq.c20
2 files changed, 20 insertions, 9 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index c2741b02ad38..46953a06f4a8 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -261,15 +261,6 @@ void enable_irq(unsigned int irq)
261} 261}
262EXPORT_SYMBOL(enable_irq); 262EXPORT_SYMBOL(enable_irq);
263 263
264/*
265 * [ Not in kernel/irq/handle.c, so that GCC does not
266 * inline the __weak alias: ]
267 */
268int __weak arch_init_chip_data(struct irq_desc *desc, int cpu)
269{
270 return 0;
271}
272
273static int set_irq_wake_real(unsigned int irq, unsigned int on) 264static 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 e7c69a720d69..daf46358d2dd 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}
798EXPORT_SYMBOL(on_each_cpu); 798EXPORT_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
806int __init __weak early_irq_init(void)
807{
808 return 0;
809}
810
811int __init __weak arch_early_irq_init(void)
812{
813 return 0;
814}
815
816int __weak arch_init_chip_data(struct irq_desc *desc, int cpu)
817{
818 return 0;
819}