nohz: stat: Fix CPU iowait time accounting
authorBo Yan <byan@nvidia.com>
Tue, 2 Apr 2013 17:44:52 +0000 (10:44 -0700)
committerMrutyunjay Sawant <msawant@nvidia.com>
Thu, 4 Apr 2013 06:25:40 +0000 (23:25 -0700)
commitc39878fb3d151a646cf290ccbf9a73b44d7a0a4f
tree2e93fbdc4cfeb2e94b4f529eb5431c898b40f9e8
parent8f646de983f24361814d9a6ca679845fb2265807
nohz: stat: Fix CPU iowait time accounting

Since cpustat[CPUTIME_IOWAIT] is never connected to
ts->iowait_sleeptime, never read from cpustat[CPUTIME_IOWAIT] when
reporting stats in /proc/stat.

Note this was rejected by Michal Hocko when it was initially proposed
by Martin Schwidefsky in LKML, so if you want to upstream it, better
find an alternative (either completely disable cpustat[CPUTIME_IOWAIT]
for CONFIG_NO_HZ or somehow connect them to keep them in sync.)

bug 1190321

Change-Id: Iee057315f871a5b99e3647494d3e4095e0c9680f
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/215620
Reviewed-by: Liang Cheng (SW) <licheng@nvidia.com>
Tested-by: Liang Cheng (SW) <licheng@nvidia.com>
fs/proc/stat.c