]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix wrong divisor in usecs_to_cputime
authorAndreas Schwab <schwab@linux-m68k.org>
Fri, 9 Dec 2011 11:35:08 +0000 (11:35 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 19 Dec 2011 03:41:20 +0000 (14:41 +1100)
commit106e03e96948f18229e1f562bc5b7334411308dd
tree60d0a8dee9620e75c6da87b3ab09813945dec336
parent545dc775132adbc6fc62e5d82e67534a5c2b6912
powerpc: Fix wrong divisor in usecs_to_cputime

Commit 39a66e8 (taskstats: use real microsecond granularity for CPU times)
renamed msecs_to_cputime to usecs_to_cputime, but failed to update all
numbers on the way.  This causes nonsensical cpu idle/iowait values to be
displayed in /proc/stat (the only user of usecs_to_cputime so far).

This also renames __cputime_msec_factor to __cputime_usec_factor, adapting
its value and using it directly in cputime_to_usecs instead of doing two
multiplications.

Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
Acked-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/cputime.h
arch/powerpc/kernel/time.c