From: KAMEZAWA Hiroyuki Date: Tue, 28 Mar 2006 09:56:37 +0000 (-0800) Subject: [PATCH] for_each_possible_cpu: loopback device. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0fed48463fb20c6bcabc5cf70e2de47b30507ee1;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [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 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);