diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-20 13:19:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-20 13:19:03 -0400 |
commit | 6496edfce95f943e1da43631c2f437509e56af7f (patch) | |
tree | 6b6e3b6bcc74c038b707a2facf45ee98fd61544e /drivers/net | |
parent | b19a42e3cb9e73cad59e60ab7403e5afe7f4b262 (diff) | |
parent | e4afa120c98252e44390067c3a6cc775cde30659 (diff) |
Merge tag 'cpumask-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux
Pull final removal of deprecated cpus_* cpumask functions from Rusty Russell:
"This is the final removal (after several years!) of the obsolete
cpus_* functions, prompted by their mis-use in staging.
With these function removed, all cpu functions should only iterate to
nr_cpu_ids, so we finally only allocate that many bits when cpumasks
are allocated offstack"
* tag 'cpumask-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux: (25 commits)
cpumask: remove __first_cpu / __next_cpu
cpumask: resurrect CPU_MASK_CPU0
linux/cpumask.h: add typechecking to cpumask_test_cpu
cpumask: only allocate nr_cpumask_bits.
Fix weird uses of num_online_cpus().
cpumask: remove deprecated functions.
mips: fix obsolete cpumask_of_cpu usage.
x86: fix more deprecated cpu function usage.
ia64: remove deprecated cpus_ usage.
powerpc: fix deprecated CPU_MASK_CPU0 usage.
CPU_MASK_ALL/CPU_MASK_NONE: remove from deprecated region.
staging/lustre/o2iblnd: Don't use cpus_weight
staging/lustre/libcfs: replace deprecated cpus_ calls with cpumask_
staging/lustre/ptlrpc: Do not use deprecated cpus_* functions
blackfin: fix up obsolete cpu function usage.
parisc: fix up obsolete cpu function usage.
tile: fix up obsolete cpu function usage.
arm64: fix up obsolete cpu function usage.
mips: fix up obsolete cpu function usage.
x86: fix up obsolete cpu function usage.
...
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/tile/tilegx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/tile/tilegx.c b/drivers/net/ethernet/tile/tilegx.c index a789a2054388..a3f7610002aa 100644 --- a/drivers/net/ethernet/tile/tilegx.c +++ b/drivers/net/ethernet/tile/tilegx.c | |||
@@ -1123,7 +1123,7 @@ static int alloc_percpu_mpipe_resources(struct net_device *dev, | |||
1123 | addr + i * sizeof(struct tile_net_comps); | 1123 | addr + i * sizeof(struct tile_net_comps); |
1124 | 1124 | ||
1125 | /* If this is a network cpu, create an iqueue. */ | 1125 | /* If this is a network cpu, create an iqueue. */ |
1126 | if (cpu_isset(cpu, network_cpus_map)) { | 1126 | if (cpumask_test_cpu(cpu, &network_cpus_map)) { |
1127 | order = get_order(NOTIF_RING_SIZE); | 1127 | order = get_order(NOTIF_RING_SIZE); |
1128 | page = homecache_alloc_pages(GFP_KERNEL, order, cpu); | 1128 | page = homecache_alloc_pages(GFP_KERNEL, order, cpu); |
1129 | if (page == NULL) { | 1129 | if (page == NULL) { |
@@ -1299,7 +1299,7 @@ static int tile_net_init_mpipe(struct net_device *dev) | |||
1299 | int first_ring, ring; | 1299 | int first_ring, ring; |
1300 | int instance = mpipe_instance(dev); | 1300 | int instance = mpipe_instance(dev); |
1301 | struct mpipe_data *md = &mpipe_data[instance]; | 1301 | struct mpipe_data *md = &mpipe_data[instance]; |
1302 | int network_cpus_count = cpus_weight(network_cpus_map); | 1302 | int network_cpus_count = cpumask_weight(&network_cpus_map); |
1303 | 1303 | ||
1304 | if (!hash_default) { | 1304 | if (!hash_default) { |
1305 | netdev_err(dev, "Networking requires hash_default!\n"); | 1305 | netdev_err(dev, "Networking requires hash_default!\n"); |