Re: [PATCH] fix scaled time accounting possible divide by zero

2007-11-19 Thread Michael Neuling
In message <[EMAIL PROTECTED]> you wrote: > Michael Neuling wrote: > > This fixes a problem noticed by Balbir Singh > > > > Signed-off-by: Michael Neuling <[EMAIL PROTECTED]> > > --- > > Paulus: can we send this up for 2.6.24? > > > > arch/powerpc/kernel/time.c |5 +++-- > > 1 file changed,

[PATCH] fix scaled time accounting possible divide by zero

2007-11-19 Thread Michael Neuling
If we get no user 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 <[EMAIL PROTECTED]> --- Resent as the first version had whitespace corruptio

Re: [PATCH] fix scaled time accounting possible divide by zero

2007-11-19 Thread Balbir Singh
Michael Neuling wrote: > This fixes a problem noticed by Balbir Singh > > Signed-off-by: Michael Neuling <[EMAIL PROTECTED]> > --- > Paulus: can we send this up for 2.6.24? > > arch/powerpc/kernel/time.c |5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > Index: linux-2.6-ozlabs

[PATCH] fix scaled time accounting possible divide by zero

2007-11-19 Thread Michael Neuling
This fixes a problem noticed by Balbir Singh Signed-off-by: Michael Neuling <[EMAIL PROTECTED]> --- Paulus: can we send this up for 2.6.24? arch/powerpc/kernel/time.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) Index: linux-2.6-ozlabs/arch/powerpc/kernel/time.c ===