Michael Neuling 06b8e878a9 taskstats scaled time cleanup
This moves the ability to scale cputime into generic code.  This allows us
to fix the issue in kernel/timer.c (noticed by Balbir) where we could only
add an unscaled value to the scaled utime/stime.

This adds a cputime_to_scaled function.  As before, the POWERPC version
does the scaling based on the last SPURR/PURR ratio calculated.  The
generic and s390 (only other arch to implement asm/cputime.h) versions are
both NOPs.

Also moves the SPURR and PURR snapshots closer.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Cc: Jay Lan <jlan@engr.sgi.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-06 10:41:00 -08:00
..
2006-09-28 16:56:43 +02:00
2005-09-07 16:57:21 -07:00
2008-02-05 16:50:58 +01:00
2007-03-05 23:35:50 +01:00
2006-09-28 16:56:43 +02:00
2008-01-26 14:11:25 +01:00
2007-10-12 16:12:59 +02:00
2008-02-03 16:32:51 +02:00
2008-02-06 10:41:00 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-09-28 16:55:39 +02:00
2006-09-20 15:58:51 +02:00
2006-09-28 16:56:43 +02:00
2005-04-16 15:20:36 -07:00
2007-02-05 21:18:19 +01:00
2005-04-16 15:20:36 -07:00
2007-07-17 10:23:11 -07:00
2007-02-05 21:18:19 +01:00
2007-02-12 15:49:57 +01:00
2006-01-10 08:01:34 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-10-06 16:38:35 +02:00
2006-09-28 16:56:43 +02:00
2005-04-16 15:20:36 -07:00
2007-10-16 09:43:10 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-02-15 15:32:22 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-10-22 12:52:49 +02:00
2005-04-16 15:20:36 -07:00
2007-05-11 08:29:34 -07:00
2007-01-11 18:18:22 -08:00
2008-02-05 09:44:16 -08:00
2008-01-26 14:11:27 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-01-14 18:27:10 -08:00
2005-04-16 15:20:36 -07:00
2007-10-17 08:42:47 -07:00
2005-04-16 15:20:36 -07:00
2007-04-27 16:01:44 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-05-01 08:59:08 -07:00
2006-09-28 16:56:43 +02:00
2008-01-26 14:11:31 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-09-28 16:56:43 +02:00
2005-04-16 15:20:36 -07:00
2008-02-05 09:44:18 -08:00
2008-01-26 14:11:11 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-02-05 21:18:17 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-07-27 12:29:19 +02:00
2005-06-04 17:13:00 -07:00
2005-04-16 15:20:36 -07:00