aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2010-11-29 04:21:48 -0500
committerLennert Buytenhek <buytenh@wantstofly.org>2011-01-13 06:26:17 -0500
commitf64305a68b3cc688a20970cd6317f96c5778ea6f (patch)
tree5f6be13ee877f1789ae15afa8a14e1178209bcae /arch/arm/kernel
parente2a93ecc7fc469dab52323c11a2d8ceaa62aac7b (diff)
ARM: core irq_data conversion.
Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r--arch/arm/kernel/irq.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c
index 8135438b881..28536e352de 100644
--- a/arch/arm/kernel/irq.c
+++ b/arch/arm/kernel/irq.c
@@ -88,7 +88,7 @@ int show_interrupts(struct seq_file *p, void *v)
88 seq_printf(p, "%*d: ", prec, i); 88 seq_printf(p, "%*d: ", prec, i);
89 for_each_present_cpu(cpu) 89 for_each_present_cpu(cpu)
90 seq_printf(p, "%10u ", kstat_irqs_cpu(i, cpu)); 90 seq_printf(p, "%10u ", kstat_irqs_cpu(i, cpu));
91 seq_printf(p, " %10s", desc->chip->name ? : "-"); 91 seq_printf(p, " %10s", desc->irq_data.chip->name ? : "-");
92 seq_printf(p, " %s", action->name); 92 seq_printf(p, " %s", action->name);
93 for (action = action->next; action; action = action->next) 93 for (action = action->next; action; action = action->next)
94 seq_printf(p, ", %s", action->name); 94 seq_printf(p, ", %s", action->name);
@@ -181,10 +181,11 @@ int __init arch_probe_nr_irqs(void)
181 181
182static void route_irq(struct irq_desc *desc, unsigned int irq, unsigned int cpu) 182static void route_irq(struct irq_desc *desc, unsigned int irq, unsigned int cpu)
183{ 183{
184 pr_debug("IRQ%u: moving from cpu%u to cpu%u\n", irq, desc->node, cpu); 184 pr_debug("IRQ%u: moving from cpu%u to cpu%u\n", irq, desc->irq_data.node, cpu);
185 185
186 raw_spin_lock_irq(&desc->lock); 186 raw_spin_lock_irq(&desc->lock);
187 desc->chip->set_affinity(irq, cpumask_of(cpu)); 187 desc->irq_data.chip->irq_set_affinity(&desc->irq_data,
188 cpumask_of(cpu), false);
188 raw_spin_unlock_irq(&desc->lock); 189 raw_spin_unlock_irq(&desc->lock);
189} 190}
190 191
@@ -199,16 +200,18 @@ void migrate_irqs(void)
199 struct irq_desc *desc; 200 struct irq_desc *desc;
200 201
201 for_each_irq_desc(i, desc) { 202 for_each_irq_desc(i, desc) {
202 if (desc->node == cpu) { 203 struct irq_data *d = &desc->irq_data;
203 unsigned int newcpu = cpumask_any_and(desc->affinity, 204
205 if (d->node == cpu) {
206 unsigned int newcpu = cpumask_any_and(d->affinity,
204 cpu_online_mask); 207 cpu_online_mask);
205 if (newcpu >= nr_cpu_ids) { 208 if (newcpu >= nr_cpu_ids) {
206 if (printk_ratelimit()) 209 if (printk_ratelimit())
207 printk(KERN_INFO "IRQ%u no longer affine to CPU%u\n", 210 printk(KERN_INFO "IRQ%u no longer affine to CPU%u\n",
208 i, cpu); 211 i, cpu);
209 212
210 cpumask_setall(desc->affinity); 213 cpumask_setall(d->affinity);
211 newcpu = cpumask_any_and(desc->affinity, 214 newcpu = cpumask_any_and(d->affinity,
212 cpu_online_mask); 215 cpu_online_mask);
213 } 216 }
214 217