nohz: stat: Fix CPU idle time accounting
authorBo Yan <byan@nvidia.com>
Fri, 22 Mar 2013 21:03:26 +0000 (14:03 -0700)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:05:03 +0000 (13:05 -0700)
commit24f91fd6ab45c594fdf9840d0eaa228993db46e3
tree9b9536b696c5363587ad211d0381d392757282e4
parent5e0ed47f6efadca65492ae4c5cccabe2213e8738
nohz: stat: Fix CPU idle time accounting

Since cpustat[CPUTIME_IDLE] is never connected to ts->idle_sleeptime,
never read from cpustat[CPUTIME_IDLE] 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_IDLE]
for CONFIG_NO_HZ or somehow connect them to keep them in sync.)

bug 1190321

Change-Id: Idc92488910b826aff850a010016d8326c7ab9e6c
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/212224
(cherry picked from commit e7a9220f5883bf3816e24895a34239a34a7d9ece)
Reviewed-on: http://git-master/r/212907
GVS: Gerrit_Virtual_Submit
Reviewed-by: Liang Cheng (SW) <licheng@nvidia.com>
kernel/time/tick-sched.c