diff options
| -rw-r--r-- | fs/proc/stat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/stat.c b/fs/proc/stat.c index 42b274da92c3..2a30d67dd6b8 100644 --- a/fs/proc/stat.c +++ b/fs/proc/stat.c | |||
| @@ -32,7 +32,7 @@ static cputime64_t get_idle_time(int cpu) | |||
| 32 | idle = kstat_cpu(cpu).cpustat.idle; | 32 | idle = kstat_cpu(cpu).cpustat.idle; |
| 33 | idle = cputime64_add(idle, arch_idle_time(cpu)); | 33 | idle = cputime64_add(idle, arch_idle_time(cpu)); |
| 34 | } else | 34 | } else |
| 35 | idle = usecs_to_cputime(idle_time); | 35 | idle = nsecs_to_jiffies64(1000 * idle_time); |
| 36 | 36 | ||
| 37 | return idle; | 37 | return idle; |
| 38 | } | 38 | } |
| @@ -46,7 +46,7 @@ static cputime64_t get_iowait_time(int cpu) | |||
| 46 | /* !NO_HZ so we can rely on cpustat.iowait */ | 46 | /* !NO_HZ so we can rely on cpustat.iowait */ |
| 47 | iowait = kstat_cpu(cpu).cpustat.iowait; | 47 | iowait = kstat_cpu(cpu).cpustat.iowait; |
| 48 | else | 48 | else |
| 49 | iowait = usecs_to_cputime(iowait_time); | 49 | iowait = nsecs_to_jiffies64(1000 * iowait_time); |
| 50 | 50 | ||
| 51 | return iowait; | 51 | return iowait; |
| 52 | } | 52 | } |
