Skip to content

Commit

Permalink
MIPS: SMTC: Use irq_data in smtc_forward_irq()
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2193/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Thomas Gleixner authored and Ralf Baechle committed Mar 25, 2011
1 parent 0e9c4ec commit 2a2b221
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/mips/kernel/smtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ void smtc_set_irq_affinity(unsigned int irq, cpumask_t affinity)

void smtc_forward_irq(unsigned int irq)
{
struct irq_data *d = irq_get_irq_data(irq);
int target;

/*
Expand All @@ -692,7 +693,7 @@ void smtc_forward_irq(unsigned int irq)
* and efficiency, we just pick the easiest one to find.
*/

target = cpumask_first(irq_desc[irq].affinity);
target = cpumask_first(d->affinity);

/*
* We depend on the platform code to have correctly processed
Expand Down

0 comments on commit 2a2b221

Please sign in to comment.