[PATCH] for_each_possible_cpu: network codes
for_each_cpu() actually iterates across all possible CPUs. We've had mistakes in the past where people were using for_each_cpu() where they should have been iterating across only online or present CPUs. This is inefficient and possibly buggy. We're renaming for_each_cpu() to for_each_possible_cpu() to avoid this in the future. This patch replaces for_each_cpu with for_each_possible_cpu under /net Signed-off-by:KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Acked-by:
"David S. Miller" <davem@davemloft.net> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
Showing
- net/bridge/netfilter/ebtables.c 6 additions, 6 deletionsnet/bridge/netfilter/ebtables.c
- net/core/dev.c 1 addition, 1 deletionnet/core/dev.c
- net/core/flow.c 2 additions, 2 deletionsnet/core/flow.c
- net/core/neighbour.c 1 addition, 1 deletionnet/core/neighbour.c
- net/core/utils.c 2 additions, 2 deletionsnet/core/utils.c
- net/ipv4/icmp.c 1 addition, 1 deletionnet/ipv4/icmp.c
- net/ipv4/ipcomp.c 4 additions, 4 deletionsnet/ipv4/ipcomp.c
- net/ipv4/netfilter/arp_tables.c 2 additions, 2 deletionsnet/ipv4/netfilter/arp_tables.c
- net/ipv4/netfilter/ip_conntrack_core.c 1 addition, 1 deletionnet/ipv4/netfilter/ip_conntrack_core.c
- net/ipv4/netfilter/ip_tables.c 2 additions, 2 deletionsnet/ipv4/netfilter/ip_tables.c
- net/ipv4/proc.c 2 additions, 2 deletionsnet/ipv4/proc.c
- net/ipv4/route.c 1 addition, 1 deletionnet/ipv4/route.c
- net/ipv6/icmp.c 2 additions, 2 deletionsnet/ipv6/icmp.c
- net/ipv6/ipcomp6.c 4 additions, 4 deletionsnet/ipv6/ipcomp6.c
- net/ipv6/netfilter/ip6_tables.c 2 additions, 2 deletionsnet/ipv6/netfilter/ip6_tables.c
- net/ipv6/proc.c 2 additions, 2 deletionsnet/ipv6/proc.c
- net/netfilter/nf_conntrack_core.c 1 addition, 1 deletionnet/netfilter/nf_conntrack_core.c
- net/netfilter/x_tables.c 2 additions, 2 deletionsnet/netfilter/x_tables.c
- net/sctp/proc.c 1 addition, 1 deletionnet/sctp/proc.c
- net/socket.c 1 addition, 1 deletionnet/socket.c
Loading
Please register or sign in to comment