Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[platform/adaptation/renesas_rcar/renesas_kernel.git] / fs / proc / stat.c
index 2527a68..d76ca6a 100644 (file)
@@ -31,7 +31,7 @@ static u64 get_idle_time(int cpu)
                idle = kcpustat_cpu(cpu).cpustat[CPUTIME_IDLE];
                idle += arch_idle_time(cpu);
        } else
-               idle = nsecs_to_jiffies64(1000 * idle_time);
+               idle = usecs_to_cputime64(idle_time);
 
        return idle;
 }
@@ -44,7 +44,7 @@ static u64 get_iowait_time(int cpu)
                /* !NO_HZ so we can rely on cpustat.iowait */
                iowait = kcpustat_cpu(cpu).cpustat[CPUTIME_IOWAIT];
        else
-               iowait = nsecs_to_jiffies64(1000 * iowait_time);
+               iowait = usecs_to_cputime64(iowait_time);
 
        return iowait;
 }