Re: [PATCH] use for_each_cpu

Anton Blanchard
2004-08-01T21:05:39Z

> yup ;) It's only six lines, and it follows the same pattern as is used in,
> say, page_alloc_cpu_notify(). Doing the same thing the same way in
> multiple places is to be preferred, yes?

If the data structure contains allocated memory, like per cpu pages I
agree. But for percpu stuff that is straight stats (eg nr_running), I
thought the aim was to just total all all possible cpus. bh_accounting
is another one that falls into this group.

Anton