mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-13 00:29:50 +00:00
[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>
This commit is contained in:
parent
0a94502277
commit
0fed48463f
@ -172,7 +172,7 @@ static struct net_device_stats *get_stats(struct net_device *dev)
|
|||||||
|
|
||||||
memset(stats, 0, sizeof(struct net_device_stats));
|
memset(stats, 0, sizeof(struct net_device_stats));
|
||||||
|
|
||||||
for_each_cpu(i) {
|
for_each_possible_cpu(i) {
|
||||||
struct net_device_stats *lb_stats;
|
struct net_device_stats *lb_stats;
|
||||||
|
|
||||||
lb_stats = &per_cpu(loopback_stats, i);
|
lb_stats = &per_cpu(loopback_stats, i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user