diff options
Diffstat (limited to 'fs/proc/stat.c')
-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 8a6ab666e9f8..2527a68057fc 100644 --- a/fs/proc/stat.c +++ b/fs/proc/stat.c | |||
@@ -31,7 +31,7 @@ static u64 get_idle_time(int cpu) | |||
31 | idle = kcpustat_cpu(cpu).cpustat[CPUTIME_IDLE]; | 31 | idle = kcpustat_cpu(cpu).cpustat[CPUTIME_IDLE]; |
32 | idle += arch_idle_time(cpu); | 32 | idle += arch_idle_time(cpu); |
33 | } else | 33 | } else |
34 | idle = usecs_to_cputime(idle_time); | 34 | idle = nsecs_to_jiffies64(1000 * idle_time); |
35 | 35 | ||
36 | return idle; | 36 | return idle; |
37 | } | 37 | } |
@@ -44,7 +44,7 @@ static u64 get_iowait_time(int cpu) | |||
44 | /* !NO_HZ so we can rely on cpustat.iowait */ | 44 | /* !NO_HZ so we can rely on cpustat.iowait */ |
45 | iowait = kcpustat_cpu(cpu).cpustat[CPUTIME_IOWAIT]; | 45 | iowait = kcpustat_cpu(cpu).cpustat[CPUTIME_IOWAIT]; |
46 | else | 46 | else |
47 | iowait = usecs_to_cputime(iowait_time); | 47 | iowait = nsecs_to_jiffies64(1000 * iowait_time); |
48 | 48 | ||
49 | return iowait; | 49 | return iowait; |
50 | } | 50 | } |