Skip to content

Commit

Permalink
alpha: cpumask_of_node() should handle -1 as a node
Browse files Browse the repository at this point in the history
CC: Richard Henderson <rth@twiddle.net>
CC: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Signed-off-by: Matt Turner <mattst88@gmail.com>
CC: linux-alpha@vger.kernel.org
CC: Rusty Russell <rusty@rustcorp.com.au>
CC: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Anton Blanchard <anton@samba.org>
  • Loading branch information
Anton Blanchard authored and Matt Turner committed Jan 14, 2010
1 parent abd4d60 commit 44c36ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/alpha/include/asm/topology.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ static const struct cpumask *cpumask_of_node(int node)
{
int cpu;

if (node == -1)
return cpu_all_mask;

cpumask_clear(&node_to_cpumask_map[node]);

for_each_online_cpu(cpu) {
Expand Down

0 comments on commit 44c36ae

Please sign in to comment.