Anton Blanchard d797396f33 MIPS: cpumask_of_node() should handle -1 as a node
pcibus_to_node can return -1 if we cannot determine which node a pci bus
is on. If passed -1, cpumask_of_node will negatively index the lookup array
and pull in random data:

# cat /sys/devices/pci0000:00/0000:00:01.0/local_cpus
00000000,00000003,00000000,00000000
# cat /sys/devices/pci0000:00/0000:00:01.0/local_cpulist
64-65

Change cpumask_of_node to check for -1 and return cpu_all_mask in this
case:

# cat /sys/devices/pci0000:00/0000:00:01.0/local_cpus
ffffffff,ffffffff,ffffffff,ffffffff
# cat /sys/devices/pci0000:00/0000:00:01.0/local_cpulist
0-127

Signed-off-by: Anton Blanchard <anton@samba.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Andrew Morton <akpm@linux-foundation.org>
Patchwork: http://patchwork.linux-mips.org/patch/831/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2010-01-12 18:19:37 +01:00
..
2009-09-17 20:07:42 +02:00
2009-12-17 01:57:30 +00:00
2009-06-17 11:06:27 +01:00
2009-07-03 15:45:26 +01:00
2008-12-12 18:12:23 +00:00
2009-12-05 09:10:12 -08:00
2009-12-17 01:57:30 +00:00
2009-07-03 15:45:29 +01:00
2009-12-16 07:20:12 -08:00
2009-06-07 05:01:00 -07:00
2009-12-17 11:03:24 -05:00
2009-12-17 01:57:32 +00:00
2009-05-14 13:50:29 +01:00
2009-06-17 11:06:28 +01:00
2008-10-20 08:52:41 -07:00
2009-06-17 11:06:30 +01:00
2009-09-09 13:29:18 -07:00
2009-07-03 15:45:27 +01:00
2009-11-02 12:00:01 +01:00
2009-06-17 11:06:31 +01:00
2009-12-01 16:15:49 -08:00