Commit 27efb93b authored by Anton Blanchard's avatar Anton Blanchard Committed by Linus Torvalds

[PATCH] Allow multiple cpus in irq affinity call

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: default avatarAnton Blanchard <anton@samba.org>
Acked-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 024345b4
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment