mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
perf sched: Fix nsec to msec conversion
We are dividing a time in ns by 1e9. This is a nsec to sec conversion. What we want is msecs. Fix it by dividing by 1e6. Signed-off-by: Frederic Weisbecker <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
66685678a0
commit
7362262687
1 changed files with 4 additions and 4 deletions
|
|
@ -1129,9 +1129,9 @@ static void output_lat_thread(struct task_atoms *atom_list)
|
|||
avg = atom_list->total_lat / atom_list->nb_atoms;
|
||||
|
||||
printf("|%9.3f ms |%9llu | avg:%9.3f ms | max:%9.3f ms |\n",
|
||||
(double)atom_list->total_runtime / 1e9,
|
||||
atom_list->nb_atoms, (double)avg / 1e9,
|
||||
(double)atom_list->max_lat / 1e9);
|
||||
(double)atom_list->total_runtime / 1e6,
|
||||
atom_list->nb_atoms, (double)avg / 1e6,
|
||||
(double)atom_list->max_lat / 1e6);
|
||||
}
|
||||
|
||||
static void __cmd_lat(void)
|
||||
|
|
@ -1157,7 +1157,7 @@ static void __cmd_lat(void)
|
|||
|
||||
printf("-----------------------------------------------------------------------------------\n");
|
||||
printf(" TOTAL: |%9.3f ms |%9Ld |\n",
|
||||
(double)all_runtime/1e9, all_count);
|
||||
(double)all_runtime/1e6, all_count);
|
||||
printf("---------------------------------------------\n");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue