Anton Blanchard
c81b812a33
powerpc: 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>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2010-01-15 13:20:08 +11:00
..
2009-06-16 19:47:27 -07:00
2009-08-03 09:05:00 +01:00
2009-12-12 13:08:14 +01:00
2009-12-11 21:24:44 -07:00
2009-08-20 10:12:23 +10:00
2009-12-18 14:54:27 +11:00
2009-11-26 09:16:19 +01:00
2009-08-20 10:29:26 +10:00
2009-11-11 21:43:17 -06:00
2009-11-11 21:43:19 -06:00
2009-11-11 21:43:20 -06:00
2009-08-20 10:12:37 +10:00
2009-08-03 14:48:36 +02:00
2009-12-11 21:24:44 -07:00
2009-07-08 13:50:24 +10:00
2009-09-24 15:31:43 +10:00
2009-12-16 07:20:12 -08:00
2009-12-16 07:20:12 -08:00
2009-10-28 16:13:03 +11:00
2009-08-28 14:24:13 +10:00
2009-11-05 16:49:57 +11:00
2009-10-14 16:58:37 +11:00
2009-12-12 22:24:30 -07:00
2009-06-15 21:45:32 -05:00
2009-09-08 17:53:04 -07:00
2009-12-10 20:08:15 -06:00
2009-08-20 10:29:27 +10:00
2009-06-26 14:37:25 +10:00
2009-10-30 17:21:23 +11:00
2009-12-09 17:14:38 +11:00
2009-10-30 17:21:27 +11:00
2009-11-11 21:43:18 -06:00
2009-11-11 21:43:18 -06:00
2009-09-24 15:31:43 +10:00
2009-12-09 17:10:37 +11:00
2009-12-01 09:33:45 +11:00
2009-12-08 16:02:50 +11:00
2009-11-05 16:49:53 +11:00
2009-12-08 16:02:50 +11:00
2009-11-05 16:51:05 +11:00
2009-11-05 16:49:53 +11:00
2009-12-08 16:02:50 +11:00
2009-11-24 14:33:03 +11:00
2009-12-09 17:09:33 +11:00
2009-12-09 17:09:14 +11:00
2009-12-09 17:09:14 +11:00
2009-09-22 07:17:41 -07:00
2009-11-05 16:50:25 +11:00
2009-08-20 10:25:09 +10:00
2009-08-20 10:25:09 +10:00
2009-08-20 10:25:09 +10:00
2009-08-24 20:48:05 -05:00
2009-08-28 14:24:12 +10:00
2009-12-08 15:59:33 +11:00
2009-08-28 14:24:12 +10:00
2009-12-15 16:28:34 +10:30
2009-06-17 00:30:22 -06:00
2009-11-13 11:09:31 -07:00
2009-10-30 17:21:28 +11:00
2009-11-05 16:50:26 +11:00
2009-10-30 17:20:58 +11:00
2009-10-30 17:20:58 +11:00
2009-08-28 14:24:15 +10:00
2009-09-16 07:49:54 -07:00
2009-09-22 09:30:40 +02:00
2009-10-30 17:20:57 +11:00
2009-12-08 15:59:33 +11:00
2009-10-30 17:20:57 +11:00
2009-09-02 16:20:41 +10:00
2009-08-20 10:12:35 +10:00
2009-10-30 17:20:58 +11:00
2009-10-30 17:20:58 +11:00
2009-12-06 17:06:19 +01:00
2009-09-24 15:31:39 +10:00
2009-08-28 14:24:12 +10:00
2009-08-20 10:12:38 +10:00
2009-09-02 15:45:53 +10:00
2009-10-15 10:58:07 -06:00
2009-06-15 16:47:26 +10:00
2009-12-09 17:09:32 +11:00
2009-12-09 17:10:37 +11:00
2009-09-24 15:31:49 +10:00
2009-08-27 13:12:51 +10:00
2009-09-02 16:20:41 +10:00
2009-09-24 15:31:49 +10:00
2009-09-02 16:20:41 +10:00
2009-08-27 13:12:51 +10:00
2009-12-08 15:59:33 +11:00
2009-12-16 07:20:08 -08:00
2009-11-11 21:43:20 -06:00
2009-08-28 14:24:14 +10:00
2009-12-04 15:39:55 +01:00
2009-10-28 16:13:02 +11:00
2009-12-14 23:55:32 +01:00
2009-08-28 14:24:16 +10:00
2009-10-29 22:34:14 +09:00
2009-10-12 13:26:31 -07:00
2009-12-14 23:55:32 +01:00
2009-12-14 23:55:32 +01:00
2009-08-28 14:24:10 +10:00
2009-11-24 17:00:26 +11:00
2009-07-10 14:24:05 -07:00
2009-08-20 10:24:56 +10:00
2009-08-20 10:12:41 +10:00
2010-01-15 13:20:08 +11:00
2009-10-28 16:13:04 +11:00
2009-12-12 22:24:31 -07:00
2009-09-21 14:28:04 +02:00
2009-08-20 10:12:24 +10:00