Skip to content

Commit

Permalink
[PATCH] for_each_possible_cpu: loopback device.
Browse files Browse the repository at this point in the history
This patch replaces for_each_cpu with for_each_possible_cpu.

Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
KAMEZAWA Hiroyuki authored and Linus Torvalds committed Mar 28, 2006
1 parent 0a94502 commit 0fed484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/loopback.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ static struct net_device_stats *get_stats(struct net_device *dev)

memset(stats, 0, sizeof(struct net_device_stats));

for_each_cpu(i) {
for_each_possible_cpu(i) {
struct net_device_stats *lb_stats;

lb_stats = &per_cpu(loopback_stats, i);
Expand Down

0 comments on commit 0fed484

Please sign in to comment.