Re: [PATCH] use for_each_cpu

Andrew Morton
2004-08-01T06:10:34Z

Anton Blanchard <anton@samba.org> wrote:
>
> The per cpu schedule counters need to be summed up over all possible cpus.
> When testing hotplug cpu remove I saw the sum of the online cpu count
> for nr_uninterruptible go negative which made the load average go nuts.

I think the preferred approach here is to transfer the count over to the
current CPU in the CPU_DEAD handler.