"README.md" did not exist on "8d0df7a3d1ecbaf5d5602a59055c8ca993855bed"
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>
Showing
- arch/powerpc/kernel/time.c 6 additions, 6 deletionsarch/powerpc/kernel/time.c
- include/asm-generic/cputime.h 1 addition, 0 deletionsinclude/asm-generic/cputime.h
- include/asm-powerpc/cputime.h 14 additions, 0 deletionsinclude/asm-powerpc/cputime.h
- include/asm-powerpc/paca.h 0 additions, 2 deletionsinclude/asm-powerpc/paca.h
- include/asm-s390/cputime.h 1 addition, 0 deletionsinclude/asm-s390/cputime.h
- kernel/timer.c 6 additions, 4 deletionskernel/timer.c
Loading
Please register or sign in to comment