aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2015-03-04 19:19:16 -0500
committerRusty Russell <rusty@rustcorp.com.au>2015-03-04 22:07:02 -0500
commitf9b531fe14a539ec2ad802b73c9638f324e4a4ff (patch)
treeb01a1070d33aef3ac045faca56772bc6432f283e /drivers/net
parent51f7bd8590267011db7b632f53f3d32ec83ee8bb (diff)
drivers: fix up obsolete cpu function usage.
Thanks to spatch, plus manual removal of "&*". Then a sweep for for_each_cpu_mask => for_each_cpu. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Herbert Xu <herbert@gondor.apana.org.au> Cc: Jason Cooper <jason@lakedaemon.net> Cc: Chris Metcalf <cmetcalf@ezchip.com> Cc: netdev@vger.kernel.org
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/tile/tilegx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/tile/tilegx.c b/drivers/net/ethernet/tile/tilegx.c
index bea8cd2bb56c..deac41498c6e 100644
--- a/drivers/net/ethernet/tile/tilegx.c
+++ b/drivers/net/ethernet/tile/tilegx.c
@@ -1122,7 +1122,7 @@ static int alloc_percpu_mpipe_resources(struct net_device *dev,
1122 addr + i * sizeof(struct tile_net_comps); 1122 addr + i * sizeof(struct tile_net_comps);
1123 1123
1124 /* If this is a network cpu, create an iqueue. */ 1124 /* If this is a network cpu, create an iqueue. */
1125 if (cpu_isset(cpu, network_cpus_map)) { 1125 if (cpumask_test_cpu(cpu, &network_cpus_map)) {
1126 order = get_order(NOTIF_RING_SIZE); 1126 order = get_order(NOTIF_RING_SIZE);
1127 page = homecache_alloc_pages(GFP_KERNEL, order, cpu); 1127 page = homecache_alloc_pages(GFP_KERNEL, order, cpu);
1128 if (page == NULL) { 1128 if (page == NULL) {
@@ -1298,7 +1298,7 @@ static int tile_net_init_mpipe(struct net_device *dev)
1298 int first_ring, ring; 1298 int first_ring, ring;
1299 int instance = mpipe_instance(dev); 1299 int instance = mpipe_instance(dev);
1300 struct mpipe_data *md = &mpipe_data[instance]; 1300 struct mpipe_data *md = &mpipe_data[instance];
1301 int network_cpus_count = cpus_weight(network_cpus_map); 1301 int network_cpus_count = cpumask_weight(&network_cpus_map);
1302 1302
1303 if (!hash_default) { 1303 if (!hash_default) {
1304 netdev_err(dev, "Networking requires hash_default!\n"); 1304 netdev_err(dev, "Networking requires hash_default!\n");