On Thu, 2010-08-26 at 12:19 -0700, Venkatesh Pallipadi wrote:
struct sched_group {
...
unsigned int cpu_power, cpu_power_orig;
...
}
we assume that things are naturally aligned and reads/writes to word
sized entities are 'atomic' -- lots of kernel code makes this
assumption.
So the worst thing that can happen with the unsynchronized update of
cpu_power is that a reader sees the old value, no problem, we don't care
its all statistics anyway. Racing writers (could happen between regular
and nohz load-balance) we don't care about either, since the result is
either one or the other, not a mixture of both.
--