Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c805912d authored by Swetha Chikkaboraiah's avatar Swetha Chikkaboraiah Committed by Gerrit - the friendly Code Review server
Browse files

nohz: fix idle and iowait stats discrepancy



There is a difference in idle and iowait accounting between
cpustat(periodic ticks) and tick_cpu_sched(nohz). Currently
when CPU is not online, cpustat based values are used. When
the CPU comes online, we start returning values based on
tick_cpu_sched. This breaks the monotonic nature of these
stats.

When nohz is enabled, don't fallback to cpustat for idle and
iowait stats instead use the accumulated values in tick_cpu_sched().

Change-Id: I768e80224012a6907520e2f6a301c3ebb29ed27d
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: default avatarSwetha Chikkaboraiah <schikk@codeaurora.org>
parent e4e2bf3e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment