mn10300: Cleanup irq_desc access

The migration needs only access to irq_data.

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

+5 -6
+5 -6
arch/mn10300/kernel/irq.c
··· 403 #ifdef CONFIG_HOTPLUG_CPU 404 void migrate_irqs(void) 405 { 406 - irq_desc_t *desc; 407 int irq; 408 unsigned int self, new; 409 unsigned long flags; 410 411 self = smp_processor_id(); 412 for (irq = 0; irq < NR_IRQS; irq++) { 413 - desc = irq_desc + irq; 414 415 - if (desc->status == IRQ_PER_CPU) 416 continue; 417 418 - if (cpu_isset(self, irq_desc[irq].affinity) && 419 !cpus_intersects(irq_affinity[irq], cpu_online_map)) { 420 int cpu_id; 421 cpu_id = first_cpu(cpu_online_map); 422 - cpu_set(cpu_id, irq_desc[irq].affinity); 423 } 424 /* We need to operate irq_affinity_online atomically. */ 425 arch_local_cli_save(flags); ··· 429 GxICR(irq) = x & GxICR_LEVEL; 430 tmp = GxICR(irq); 431 432 - new = any_online_cpu(irq_desc[irq].affinity); 433 irq_affinity_online[irq] = new; 434 435 CROSS_GxICR(irq, new) =
··· 403 #ifdef CONFIG_HOTPLUG_CPU 404 void migrate_irqs(void) 405 { 406 int irq; 407 unsigned int self, new; 408 unsigned long flags; 409 410 self = smp_processor_id(); 411 for (irq = 0; irq < NR_IRQS; irq++) { 412 + struct irq_data *data = irq_get_irq_data(irq); 413 414 + if (irqd_is_per_cpu(data)) 415 continue; 416 417 + if (cpu_isset(self, data->affinity) && 418 !cpus_intersects(irq_affinity[irq], cpu_online_map)) { 419 int cpu_id; 420 cpu_id = first_cpu(cpu_online_map); 421 + cpu_set(cpu_id, data->affinity); 422 } 423 /* We need to operate irq_affinity_online atomically. */ 424 arch_local_cli_save(flags); ··· 430 GxICR(irq) = x & GxICR_LEVEL; 431 tmp = GxICR(irq); 432 433 + new = any_online_cpu(data->affinity); 434 irq_affinity_online[irq] = new; 435 436 CROSS_GxICR(irq, new) =