diff options
author | KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> | 2006-03-28 11:56:37 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-28 19:16:05 +0200 |
commit | 0fed48463fb20c6bcabc5cf70e2de47b30507ee1 (patch) | |
tree | 2e5633d4afe21dc79d1f0284951a4ee71c2c843c /drivers | |
parent | [PATCH] for_each_possible_cpu: fixes for generic part (diff) | |
download | linux-0fed48463fb20c6bcabc5cf70e2de47b30507ee1.tar.xz linux-0fed48463fb20c6bcabc5cf70e2de47b30507ee1.zip |
[PATCH] for_each_possible_cpu: loopback device.
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/loopback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c index 0c13795dca38..b79d6e8d3045 100644 --- a/drivers/net/loopback.c +++ b/drivers/net/loopback.c @@ -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); |