From: KAMEZAWA Hiroyuki Date: Tue, 28 Mar 2006 09:56:37 +0000 (-0800) Subject: [PATCH] for_each_possible_cpu: loopback device. X-Git-Tag: v2.6.17-rc1~232 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fed48463fb20c6bcabc5cf70e2de47b30507ee1;p=linux-2.6 [PATCH] for_each_possible_cpu: loopback device. This patch replaces for_each_cpu with for_each_possible_cpu. Signed-off-by: KAMEZAWA Hiroyuki Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c index 0c13795dca..b79d6e8d30 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);