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
..
2008-10-11 16:18:52 +01:00
2009-08-03 17:52:40 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-09-17 20:07:42 +02:00
2009-11-02 12:00:03 +01:00
2009-11-02 12:00:03 +01:00
2009-06-17 11:06:28 +01:00
2009-11-02 12:00:03 +01:00
2009-09-17 20:07:50 +02:00
2009-07-03 15:45:29 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-06-17 11:06:24 +01:00
2008-10-15 12:46:51 +01:00
2010-01-12 18:19:37 +01:00
2008-10-15 12:46:51 +01:00
2009-06-17 11:06:24 +01:00
2009-06-17 11:06:24 +01:00
2008-10-11 16:18:52 +01:00
2009-12-17 01:57:34 +00:00
2009-09-17 20:07:49 +02:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-12-04 15:39:55 +01:00
2008-10-11 16:18:52 +01:00
2009-12-17 01:57:17 +00:00
2009-06-17 11:06:26 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-27 16:18:27 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-12-17 01:57:06 +00:00
2009-12-17 01:57:30 +00:00
2008-10-11 16:18:52 +01:00
2009-08-03 17:52:43 +01:00
2009-12-04 15:39:55 +01:00
2009-12-04 15:39:55 +01:00
2009-12-04 15:39:55 +01:00
2009-06-17 11:06:27 +01:00
2009-07-03 15:45:29 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-07-03 15:45:26 +01:00
2009-12-12 13:08:14 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-12-12 18:12:23 +00:00
2009-09-17 20:07:50 +02:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-09-17 20:07:50 +02:00
2009-06-11 21:02:14 +02:00
2009-12-17 01:57:18 +00:00
2008-10-11 16:18:52 +01:00
2008-10-30 14:44:34 +00:00
2009-12-05 09:10:12 -08:00
2009-06-24 18:34:39 +01:00
2009-01-14 19:56:50 -08:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-11-26 09:16:19 +01:00
2008-10-11 16:18:52 +01:00
2008-10-15 12:46:49 +01:00
2009-05-14 13:50:28 +01:00
2009-12-17 01:57:20 +00:00
2008-10-11 16:18:52 +01:00
2009-09-17 20:07:50 +02:00
2008-10-11 16:18:52 +01:00
2009-05-14 13:50:26 +01:00
2008-10-11 16:18:52 +01:00
2009-12-17 01:57:30 +00:00
2009-09-17 20:07:50 +02:00
2009-06-08 16:57:51 +01:00
2009-12-17 01:57:20 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-09-17 20:07:41 +02:00
2008-10-11 16:18:52 +01:00
2009-05-14 13:50:29 +01:00
2009-11-13 18:10:37 +01:00
2008-10-11 16:18:52 +01:00
2009-07-03 15:45:29 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-12-16 07:20:12 -08:00
2008-10-11 16:18:52 +01:00
2009-06-07 05:01:00 -07:00
2008-10-11 16:18:52 +01:00
2009-12-17 11:03:24 -05:00
2009-11-02 12:00:04 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-12-17 01:57:08 +00:00
2009-12-17 01:57:32 +00:00
2009-12-17 01:57:25 +00:00
2008-10-11 16:18:52 +01:00
2009-11-02 12:00:06 +01:00
2009-11-02 12:00:06 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-09-17 20:07:48 +02:00
2009-05-14 13:50:26 +01:00
2009-05-14 13:50:29 +01:00
2009-06-17 11:06:30 +01:00
2008-10-11 16:18:52 +01:00
2009-06-16 19:47:27 -07:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-01-11 09:57:22 +00:00
2009-06-17 11:06:28 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-07-03 15:45:29 +01:00
2008-10-11 16:18:52 +01:00
2009-12-17 01:57:24 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-01-14 19:56:50 -08:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-06-16 19:47:51 -07:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-09-17 20:07:50 +02:00
2008-10-11 16:18:52 +01:00
2008-10-20 08:52:41 -07:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-06-17 11:06:30 +01:00
2009-12-01 16:21:25 +00:00
2009-12-17 01:57:01 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-01-11 09:57:22 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-09-17 20:07:42 +02:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-09-09 13:29:18 -07:00
2008-10-11 16:18:52 +01:00
2009-07-27 17:26:44 -07:00
2008-10-11 16:18:52 +01:00
2009-09-17 20:07:51 +02:00
2009-06-17 11:06:30 +01:00
2009-12-17 01:57:15 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-03-11 21:11:07 +01:00
2009-08-03 17:52:41 +01:00
2009-01-30 21:32:58 +00:00
2008-10-11 16:18:52 +01:00
2009-06-17 11:06:24 +01:00
2008-10-11 16:18:52 +01:00
2009-07-03 15:45:27 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-03-13 23:07:59 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-11-02 12:00:01 +01:00
2009-12-17 01:56:56 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-02-01 11:01:26 +05:30
2008-10-11 16:18:52 +01:00
2009-06-11 21:01:52 +02:00
2008-10-11 16:18:52 +01:00
2009-09-24 09:34:45 +09:30
2009-09-30 21:47:00 +02:00
2009-11-02 12:00:06 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-10-12 13:26:31 -07:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-12-14 23:55:32 +01:00
2009-12-14 23:55:32 +01:00
2009-11-02 12:00:05 +01:00
2009-12-17 01:57:01 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-06-17 11:06:31 +01:00
2009-07-03 15:45:25 +01:00
2008-10-11 16:18:52 +01:00
2009-12-01 16:21:25 +00:00
2008-10-11 16:18:52 +01:00
2009-01-30 21:32:57 +00:00
2009-11-02 12:00:01 +01:00
2009-11-13 20:46:24 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-06-11 21:02:14 +02:00
2009-05-22 13:52:05 +01:00
2008-10-11 16:18:52 +01:00
2009-09-30 21:47:02 +02:00
2009-12-01 16:15:49 -08:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:56 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00