Re: [RFC PATCH 2/3] net: Replace for_each_possible_cpu with for_each_online_cpu

From: David Miller
Date: Mon Aug 08 2016 - 13:59:23 EST


From: Jia He <hejianet@xxxxxxxxx>
Date: Mon, 8 Aug 2016 18:22:21 +0800

> In PowerPC server with large number cpus, the loop index in smt=1 could be
> reduced to 1/8 compared with smt=8.
> Thus cache misses can be reduced.

You can't do this, if cpus go down we still want to report the statistics
they collected while they were up.

So we must use the possible cpu list here.