06b8e878a9
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> |
||
---|---|---|
.. | ||
a.out.h | ||
airq.h | ||
appldata.h | ||
atomic.h | ||
auxvec.h | ||
bitops.h | ||
bug.h | ||
bugs.h | ||
byteorder.h | ||
cache.h | ||
cacheflush.h | ||
ccwdev.h | ||
ccwgroup.h | ||
checksum.h | ||
chpid.h | ||
cio.h | ||
cmb.h | ||
compat.h | ||
cpcmd.h | ||
cpu.h | ||
cputime.h | ||
current.h | ||
dasd.h | ||
debug.h | ||
delay.h | ||
device.h | ||
diag.h | ||
div64.h | ||
dma.h | ||
ebcdic.h | ||
elf.h | ||
emergency-restart.h | ||
errno.h | ||
etr.h | ||
extmem.h | ||
fb.h | ||
fcntl.h | ||
futex.h | ||
hardirq.h | ||
idals.h | ||
io.h | ||
ioctl.h | ||
ioctls.h | ||
ipcbuf.h | ||
ipl.h | ||
irq_regs.h | ||
irq.h | ||
irqflags.h | ||
Kbuild | ||
kdebug.h | ||
kexec.h | ||
kmap_types.h | ||
kprobes.h | ||
linkage.h | ||
local.h | ||
lowcore.h | ||
mathemu.h | ||
mman.h | ||
mmu_context.h | ||
mmu.h | ||
module.h | ||
monwriter.h | ||
msgbuf.h | ||
mutex.h | ||
namei.h | ||
page.h | ||
param.h | ||
pci.h | ||
percpu.h | ||
pgalloc.h | ||
pgtable.h | ||
poll.h | ||
posix_types.h | ||
processor.h | ||
ptrace.h | ||
qdio.h | ||
qeth.h | ||
reset.h | ||
resource.h | ||
rwsem.h | ||
s390_ext.h | ||
s390_rdev.h | ||
scatterlist.h | ||
sclp.h | ||
sections.h | ||
segment.h | ||
semaphore.h | ||
sembuf.h | ||
setup.h | ||
sfp-machine.h | ||
sfp-util.h | ||
shmbuf.h | ||
shmparam.h | ||
sigcontext.h | ||
siginfo.h | ||
signal.h | ||
sigp.h | ||
smp.h | ||
socket.h | ||
sockios.h | ||
spinlock_types.h | ||
spinlock.h | ||
stat.h | ||
statfs.h | ||
string.h | ||
suspend.h | ||
system.h | ||
tape390.h | ||
termbits.h | ||
termios.h | ||
thread_info.h | ||
timer.h | ||
timex.h | ||
tlb.h | ||
tlbflush.h | ||
todclk.h | ||
topology.h | ||
types.h | ||
uaccess.h | ||
ucontext.h | ||
unaligned.h | ||
unistd.h | ||
user.h | ||
vtoc.h | ||
xor.h | ||
zcrypt.h |