From: Thomas Gleixner Date: Tue, 11 Jul 2006 21:54:34 +0000 (+0100) Subject: [ARM] 3728/1: Restore missing CPU Hotplug irq helper X-Git-Tag: v3.12-rc1~34599^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7ede370a2aac96903d6e25f3b04345fa6d066f2;p=kernel%2Fkernel-generic.git [ARM] 3728/1: Restore missing CPU Hotplug irq helper Patch from Thomas Gleixner From: Thomas Gleixner The genirq conversion of ARM lost a CPU Hotplug helper function. Restore it. Signed-off-by: Thomas Gleixner Signed-off-by: Russell King --- diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c index c3d4e94..626feeec 100644 --- a/arch/arm/kernel/irq.c +++ b/arch/arm/kernel/irq.c @@ -167,6 +167,16 @@ void __init init_IRQ(void) } #ifdef CONFIG_HOTPLUG_CPU + +static void route_irq(struct irqdesc *desc, unsigned int irq, unsigned int cpu) +{ + pr_debug("IRQ%u: moving from cpu%u to cpu%u\n", irq, desc->cpu, cpu); + + spin_lock_irq(&desc->lock); + desc->chip->set_affinity(irq, cpumask_of_cpu(cpu)); + spin_unlock_irq(&desc->lock); +} + /* * The CPU has been marked offline. Migrate IRQs off this CPU. If * the affinity settings do not allow other CPUs, force them onto any