From: Paul Mackerras <hidden> Date: 2006-06-14 22:33:55
Nathan Lynch writes:
Without disabling preemption around the mfspr ... update_stats section
in these hcall wrappers, you risk updating the stats on the wrong cpu.
I think we are only looking for total counts and times anyway, so it
doesn't really matter which cpu updates the stats, as long as the time
gets accounted on some cpu. The use of per-cpu counters is just for
better cache behaviour.
Paul.