Commit 097e98b4 authored by Thomas Gleixner's avatar Thomas Gleixner

ia64: Convert migrate_platform_irqs() to new irq chip functions

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 28a283aa
...@@ -677,7 +677,7 @@ extern void fixup_irqs(void); ...@@ -677,7 +677,7 @@ extern void fixup_irqs(void);
int migrate_platform_irqs(unsigned int cpu) int migrate_platform_irqs(unsigned int cpu)
{ {
int new_cpei_cpu; int new_cpei_cpu;
struct irq_desc *desc = NULL; struct irq_data *data = NULL;
const struct cpumask *mask; const struct cpumask *mask;
int retval = 0; int retval = 0;
...@@ -693,20 +693,20 @@ int migrate_platform_irqs(unsigned int cpu) ...@@ -693,20 +693,20 @@ int migrate_platform_irqs(unsigned int cpu)
new_cpei_cpu = any_online_cpu(cpu_online_map); new_cpei_cpu = any_online_cpu(cpu_online_map);
mask = cpumask_of(new_cpei_cpu); mask = cpumask_of(new_cpei_cpu);
set_cpei_target_cpu(new_cpei_cpu); set_cpei_target_cpu(new_cpei_cpu);
desc = irq_desc + ia64_cpe_irq; data = irq_get_irq_data(ia64_cpe_irq);
/* /*
* Switch for now, immediately, we need to do fake intr * Switch for now, immediately, we need to do fake intr
* as other interrupts, but need to study CPEI behaviour with * as other interrupts, but need to study CPEI behaviour with
* polling before making changes. * polling before making changes.
*/ */
if (desc) { if (data && data->chip) {
desc->chip->disable(ia64_cpe_irq); data->chip->irq_disable(data);
desc->chip->set_affinity(ia64_cpe_irq, mask); data->chip->irq_set_affinity(data, mask, false);
desc->chip->enable(ia64_cpe_irq); data->chip->irq_enable(data);
printk ("Re-targetting CPEI to cpu %d\n", new_cpei_cpu); printk ("Re-targetting CPEI to cpu %d\n", new_cpei_cpu);
} }
} }
if (!desc) { if (!data) {
printk ("Unable to retarget CPEI, offline cpu [%d] failed\n", cpu); printk ("Unable to retarget CPEI, offline cpu [%d] failed\n", cpu);
retval = -EBUSY; retval = -EBUSY;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment