diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2006-10-17 23:08:35 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-10-23 18:20:12 +1000 |
commit | cbcdb93d4443568f17e93610d240043ec5ac067b (patch) | |
tree | 752068e5de637a20a14f1829a9b7755f27914356 /arch/i386/mach-generic | |
parent | 5cfc35cf79d46af998346e3d5cc66fa344d1af0e (diff) |
[POWERPC] Simplify stolen time calculation
In calculating stolen time, we were trying to actually account for time
spent in the hypervisor. We don't really have enough information to do
that accurately, so don't try. Instead, we now calculate stolen time as
time that the current cpu thread is not actually dispatching instructions.
On chips without a PURR, we cannot do this, so stolen time will always
be zero. On chips with a PURR, this is merely the difference between
the elapsed PURR values and the elapsed TB values.
This gives us much more sane vaules from tools such as mpstat, even if
they are still a bit strange e.g. 2 busy threads on one cpu will both
appear to have 50% user time and 50% stolen time while 1 busy thread on
a cpu will look like 100% user on one of them and 100% idle on the other.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/i386/mach-generic')
0 files changed, 0 insertions, 0 deletions