mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
ANDROID: uid_sys_stats: report uid_cputime stats in microseconds
A porting error in commit0ae8088521("ANDROID: uid_cputime: Adds accounting for the cputimes per uid.") caused /proc/uid_cputime/show_uid_stat to report times in milliseconds instead of microseconds. Restore the expected behavior. Bug: 133273154 Bug: 146339763 Signed-off-by: Ed Savage-Jones <edward.savage-jones@sony.com> Signed-off-by: Connor O'Brien <connoro@google.com> Change-Id: I203919d1d44b300dab91810b16626a6950b063f8 (cherry picked from commit305d5c1975)
This commit is contained in:
parent
0f68e36ebe
commit
7024725677
|
|
@ -372,7 +372,7 @@ static int uid_cputime_show(struct seq_file *m, void *v)
|
|||
u64 total_stime = uid_entry->stime +
|
||||
uid_entry->active_stime;
|
||||
seq_printf(m, "%d: %llu %llu\n", uid_entry->uid,
|
||||
ktime_to_ms(total_utime), ktime_to_ms(total_stime));
|
||||
ktime_to_us(total_utime), ktime_to_us(total_stime));
|
||||
}
|
||||
|
||||
rt_mutex_unlock(&uid_lock);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user