[PATCH 2/3] powerpc: Instrument Hypervisor Calls: add wrappers

Paul Mackerras paulus at samba.org
Thu Jun 15 08:33:55 EST 2006


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.



More information about the Linuxppc-dev mailing list