diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2006-07-11 17:54:34 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-07-11 17:54:34 -0400 |
commit | f7ede370a2aac96903d6e25f3b04345fa6d066f2 (patch) | |
tree | f5d19892fbc6d8fa235022b11b5f06828f59278d /arch/arm | |
parent | b94ea6c08d9f9ac5339b1c2025ce3ca87b007200 (diff) |
[ARM] 3728/1: Restore missing CPU Hotplug irq helper
Patch from Thomas Gleixner
From: Thomas Gleixner <tglx@linutronix.de>
The genirq conversion of ARM lost a CPU Hotplug helper function.
Restore it.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/kernel/irq.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c index c3d4e94ef5bf..626feeec0ade 100644 --- a/arch/arm/kernel/irq.c +++ b/arch/arm/kernel/irq.c | |||
@@ -167,6 +167,16 @@ void __init init_IRQ(void) | |||
167 | } | 167 | } |
168 | 168 | ||
169 | #ifdef CONFIG_HOTPLUG_CPU | 169 | #ifdef CONFIG_HOTPLUG_CPU |
170 | |||
171 | static void route_irq(struct irqdesc *desc, unsigned int irq, unsigned int cpu) | ||
172 | { | ||
173 | pr_debug("IRQ%u: moving from cpu%u to cpu%u\n", irq, desc->cpu, cpu); | ||
174 | |||
175 | spin_lock_irq(&desc->lock); | ||
176 | desc->chip->set_affinity(irq, cpumask_of_cpu(cpu)); | ||
177 | spin_unlock_irq(&desc->lock); | ||
178 | } | ||
179 | |||
170 | /* | 180 | /* |
171 | * The CPU has been marked offline. Migrate IRQs off this CPU. If | 181 | * The CPU has been marked offline. Migrate IRQs off this CPU. If |
172 | * the affinity settings do not allow other CPUs, force them onto any | 182 | * the affinity settings do not allow other CPUs, force them onto any |