]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ftrace: fix max latency
authorSteven Rostedt <srostedt@redhat.com>
Mon, 12 May 2008 19:20:44 +0000 (21:20 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 May 2008 18:40:22 +0000 (20:40 +0200)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/trace/trace.c

index 95966561ba3dec92df7505496c6acb8245d6bde4..9bad2379115ae8ac4408ef44aab45f2b7c1684bd 100644 (file)
@@ -69,6 +69,11 @@ static int __init set_nr_entries(char *str)
 }
 __setup("trace_entries=", set_nr_entries);
 
+unsigned long nsecs_to_usecs(unsigned long nsecs)
+{
+       return nsecs / 1000;
+}
+
 enum trace_type {
        __TRACE_FIRST_TYPE = 0,
 
@@ -733,7 +738,7 @@ print_trace_header(struct seq_file *m, struct trace_iterator *iter)
                 "---------------------------------\n");
        seq_printf(m, " latency: %lu us, #%lu/%lu, CPU#%d |"
                   " (M:%s VP:%d, KP:%d, SP:%d HP:%d",
-                  data->saved_latency,
+                  nsecs_to_usecs(data->saved_latency),
                   entries,
                   total,
                   tr->cpu,
@@ -771,11 +776,6 @@ print_trace_header(struct seq_file *m, struct trace_iterator *iter)
        seq_puts(m, "\n");
 }
 
-unsigned long nsecs_to_usecs(unsigned long nsecs)
-{
-       return nsecs / 1000;
-}
-
 static void notrace
 lat_print_generic(struct seq_file *m, struct trace_entry *entry, int cpu)
 {