]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Allow multiple cpus in irq affinity call
authorAnton Blanchard <anton@samba.org>
Thu, 2 Dec 2004 23:45:40 +0000 (15:45 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 2 Dec 2004 23:45:40 +0000 (15:45 -0800)
The generic irq affinity code limits us to a single cpu target regardless
of what the architecture supports.  If required this should be done in the
architecture specific ->set_affinity call.

With this patch ppc64 is able to select all cpus affinity again.

Signed-off-by: Anton Blanchard <anton@samba.org>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/irq/proc.c

index 2ddbe8404c9c094e269b9aaa1d2e7d71ed268eb1..f555f87cfca4c818f1a0d3d3f71535b1ef82aef6 100644 (file)
@@ -56,8 +56,7 @@ static int irq_affinity_write_proc(struct file *file, const char __user *buffer,
                return -EINVAL;
 
        irq_affinity[irq] = new_value;
-       irq_desc[irq].handler->set_affinity(irq,
-                                       cpumask_of_cpu(first_cpu(new_value)));
+       irq_desc[irq].handler->set_affinity(irq, new_value);
 
        return full_count;
 }