aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/irq/handle.c5
-rw-r--r--kernel/irq/manage.c9
2 files changed, 9 insertions, 5 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
index 157c04c3b158..c20db0be9173 100644
--- a/kernel/irq/handle.c
+++ b/kernel/irq/handle.c
@@ -86,11 +86,6 @@ void init_kstat_irqs(struct irq_desc *desc, int cpu, int nr)
86 desc->kstat_irqs = (unsigned int *)ptr; 86 desc->kstat_irqs = (unsigned int *)ptr;
87} 87}
88 88
89int __weak arch_init_chip_data(struct irq_desc *desc, int cpu)
90{
91 return 0;
92}
93
94static void init_one_irq_desc(int irq, struct irq_desc *desc, int cpu) 89static void init_one_irq_desc(int irq, struct irq_desc *desc, int cpu)
95{ 90{
96 memcpy(desc, &irq_desc_init, sizeof(struct irq_desc)); 91 memcpy(desc, &irq_desc_init, sizeof(struct irq_desc));
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index 46953a06f4a8..c2741b02ad38 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -261,6 +261,15 @@ 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
264static int set_irq_wake_real(unsigned int irq, unsigned int on) 273static int set_irq_wake_real(unsigned int irq, unsigned int on)
265{ 274{
266 struct irq_desc *desc = irq_to_desc(irq); 275 struct irq_desc *desc = irq_to_desc(irq);