]> err.no Git - linux-2.6/commit
[POWERPC] Fix possible division by zero in scaled time accounting
authorMichael Neuling <mikey@neuling.org>
Tue, 20 Nov 2007 04:18:40 +0000 (15:18 +1100)
committerPaul Mackerras <paulus@samba.org>
Tue, 20 Nov 2007 05:10:28 +0000 (16:10 +1100)
commit2b46b5673ca67d23302c2afac045def988a3cade
tree02b291c7d8fe862e2ac76b22a4fc361e4620f0a3
parentc443acab2eebf12dce7e78fe29e76786f55ad1be
[POWERPC] Fix possible division by zero in scaled time accounting

If we get no user time and no system time allocated since the last
account_system_vtime, the system to user time ratio estimate can end
up dividing by zero.

This was causing a problem noticed by Balbir Singh.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/time.c