diff options
author | Paul Mackerras <paulus@samba.org> | 2006-07-31 20:37:25 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-07-31 20:37:25 -0400 |
commit | 57cad8084e0837e0f2c97da789ec9b3f36809be9 (patch) | |
tree | e9c790afb4286f78cb08d9664f58baa7e876fe55 /arch/arm/kernel/irq.c | |
parent | cb18bd40030c879cd93fef02fd579f74dbab473d (diff) | |
parent | 49b1e3ea19b1c95c2f012b8331ffb3b169e4c042 (diff) |
Merge branch 'merge'
Diffstat (limited to 'arch/arm/kernel/irq.c')
-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 |