Skip to content

Commit

Permalink
net: convert to new cpumask API
Browse files Browse the repository at this point in the history
We plan to remove cpu_xx() old api later. Thus this patch
convert it.

This patch has no functional change.

Signed-off-by: KOSAKI Motohiro <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
kosaki authored and davem330 committed May 16, 2011
1 parent 5173cc0 commit 2142c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/net-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ static ssize_t store_xps_map(struct netdev_queue *queue,
} else
pos = map_len = alloc_len = 0;

need_set = cpu_isset(cpu, *mask) && cpu_online(cpu);
need_set = cpumask_test_cpu(cpu, mask) && cpu_online(cpu);
#ifdef CONFIG_NUMA
if (need_set) {
if (numa_node == -2)
Expand Down

0 comments on commit 2142c13

Please sign in to comment.