From: Anton Blanchard Date: Sun, 7 Oct 2007 07:24:31 +0000 (-0700) Subject: Fix timer_stats printout of events/sec X-Git-Tag: v2.6.23~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74922be1485818ed368c4cf4f0b100f70bf01e08;p=pandora-kernel.git Fix timer_stats printout of events/sec 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 Acked-by: Ingo Molnar Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed