Fix timer_stats printout of events/sec
commitceda57cf82ec93444e7d86755e6d43ab11c1b50d
authorAnton Blanchard <anton@samba.org>
Sun, 7 Oct 2007 07:24:31 +0000 (7 00:24 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 10 Oct 2007 17:50:16 +0000 (10 10:50 -0700)
treeaede8290faf64210c263a9f7eff333d3d279af67
parent433d028c427f90a2ab38b6eab752e19cd1ac9981
Fix timer_stats printout of events/sec

commit 74922be1485818ed368c4cf4f0b100f70bf01e08 upstream.

When using /proc/timer_stats on ppc64 I noticed the events/sec field wasnt
accurate.  Sometimes the integer part was incorrect due to rounding (we
werent taking the fractional seconds into consideration).

The fraction part is also wrong, we need to pad the printf statement and
take the bottom three digits of 1000 times the value.

Signed-off-by: Anton Blanchard <anton@samba.org>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/time/timer_stats.c