Searched hist:"9 f5072d4f63f28d30d343573830ac6c85fc0deff" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | cputime.h | diff 9f5072d4f63f28d30d343573830ac6c85fc0deff Fri Dec 09 05:35:08 CST 2011 Andreas Schwab <schwab@linux-m68k.org> powerpc: Fix wrong divisor in usecs_to_cputime
Commit d57af9b (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>
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | time.c | diff 9f5072d4f63f28d30d343573830ac6c85fc0deff Fri Dec 09 05:35:08 CST 2011 Andreas Schwab <schwab@linux-m68k.org> powerpc: Fix wrong divisor in usecs_to_cputime
Commit d57af9b (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>
|