diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2011-01-22 11:32:14 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-16 18:19:00 -0700 |
commit | 9f2264aca01888999d3946bd3ce1209b199c6e5d (patch) | |
tree | 97c9c5d6116881a9b44b1e36ea06b0bbee29b854 /arch/sparc | |
parent | 0c7c6a3c05f1d6d7e99fff0ca4056dce3ce07484 (diff) | |
download | linux-stable-9f2264aca01888999d3946bd3ce1209b199c6e5d.tar.gz linux-stable-9f2264aca01888999d3946bd3ce1209b199c6e5d.tar.bz2 linux-stable-9f2264aca01888999d3946bd3ce1209b199c6e5d.zip |
sparc64: fix direct access to irq_desc
GENERIC_HARDIRQS_NO_DEPRECATED require us to access data via irq_data.
No functional changes as data has same layout due to use of union
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/irq_64.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/sparc/kernel/irq_64.c b/arch/sparc/kernel/irq_64.c index 830d70a3e20b..ee67dae079c6 100644 --- a/arch/sparc/kernel/irq_64.c +++ b/arch/sparc/kernel/irq_64.c @@ -190,7 +190,7 @@ int show_interrupts(struct seq_file *p, void *v) for_each_online_cpu(j) seq_printf(p, "%10u ", kstat_irqs_cpu(i, j)); #endif - seq_printf(p, " %9s", irq_desc[i].chip->name); + seq_printf(p, " %9s", irq_desc[i].irq_data.chip->name); seq_printf(p, " %s", action->name); for (action=action->next; action; action = action->next) @@ -284,7 +284,7 @@ static void sun4u_irq_enable(unsigned int virt_irq) unsigned int tid; cpuid = irq_choose_cpu(virt_irq, - irq_desc[virt_irq].affinity); + irq_desc[virt_irq].irq_data.affinity); imap = data->imap; tid = sun4u_compute_tid(imap, cpuid); @@ -360,7 +360,7 @@ static void sun4v_irq_enable(unsigned int virt_irq) { unsigned int ino = virt_irq_table[virt_irq].dev_ino; unsigned long cpuid = irq_choose_cpu(virt_irq, - irq_desc[virt_irq].affinity); + irq_desc[virt_irq].irq_data.affinity); int err; err = sun4v_intr_settarget(ino, cpuid); @@ -423,7 +423,7 @@ static void sun4v_virq_enable(unsigned int virt_irq) unsigned long cpuid, dev_handle, dev_ino; int err; - cpuid = irq_choose_cpu(virt_irq, irq_desc[virt_irq].affinity); + cpuid = irq_choose_cpu(virt_irq, irq_desc[virt_irq].irq_data.affinity); dev_handle = virt_irq_table[virt_irq].dev_handle; dev_ino = virt_irq_table[virt_irq].dev_ino; @@ -798,9 +798,9 @@ void fixup_irqs(void) raw_spin_lock_irqsave(&irq_desc[irq].lock, flags); if (irq_desc[irq].action && !(irq_desc[irq].status & IRQ_PER_CPU)) { - if (irq_desc[irq].chip->set_affinity) - irq_desc[irq].chip->set_affinity(irq, - irq_desc[irq].affinity); + if (irq_desc[irq].irq_data.chip->set_affinity) + irq_desc[irq].irq_data.chip->set_affinity(irq, + irq_desc[irq].irq_data.affinity); } raw_spin_unlock_irqrestore(&irq_desc[irq].lock, flags); } |