diff options
| author | Andreas Schwab <[email protected]> | 2011-12-28 23:57:15 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2011-12-30 00:31:57 +0000 |
| commit | 34845636a184f3be91a531098192592cbe6db587 (patch) | |
| tree | 1c216e37f536a71dae94e41db3f1e059f9ac70a5 /net/unix/af_unix.c | |
| parent | mm/mempolicy.c: refix mbind_range() vma issue (diff) | |
| download | kernel-34845636a184f3be91a531098192592cbe6db587.tar.gz kernel-34845636a184f3be91a531098192592cbe6db587.zip | |
procfs: do not confuse jiffies with cputime64_t
Commit 2a95ea6c0d129b4 ("procfs: do not overflow get_{idle,iowait}_time
for nohz") did not take into account that one some architectures jiffies
and cputime use different units.
This causes get_idle_time() to return numbers in the wrong units, making
the idle time fields in /proc/stat wrong.
Instead of converting the usec value returned by
get_cpu_{idle,iowait}_time_us to units of jiffies, use the new function
usecs_to_cputime64 to convert it to the correct unit of cputime64_t.
Signed-off-by: Andreas Schwab <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: "Artem S. Tashkinov" <[email protected]>
Cc: Dave Jones <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: "Luck, Tony" <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Heiko Carstens <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
