Re: [PATCH 1/2] Cleanup: use for_each_online_cpu in vmstat

From: KAMEZAWA Hiroyuki
Date: Thu Jun 10 2010 - 21:02:08 EST


On Thu, 10 Jun 2010 22:28:46 +0900
Minchan Kim <minchan.kim@xxxxxxxxx> wrote:

> The sum_vm_events passes cpumask for for_each_cpu.
> But it's useless since we have for_each_online_cpu.
> Althougth it's tirival overhead, it's not good about
> coding consistency.
>
> Let's use for_each_online_cpu instead of for_each_cpu with
> cpumask argument.
>
> Cc: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>
> Cc: Christoph Lameter <clameter@xxxxxxx>
> Signed-off-by: Minchan Kim <minchan.kim@xxxxxxxxx>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/