diff options
| author | Lianwei Wang <a22439@motorola.com> | 2014-12-05 15:29:09 -0800 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2019-05-02 14:30:27 +0200 |
| commit | 23d0d66e029e827b33a899b79aa446aaff0ca9fb (patch) | |
| tree | c17c715b4071945d4a6cc4ed74a16013f273cb75 /kernel/pid.c | |
| parent | 1c96da9a7439f87cf2793a60b0a80c488c687cae (diff) | |
tick: don't update idle time if cpu offline
Propagate from (CR).
An offline cpu still has ts->idle_active == 1, that cause
off time is counted as idle time, and hence cause cpu load
calculated wrongly.
Check the cpu online status before updating the idle time to
fix it.
Change-Id: I8c3213105601efca037eb23ad724811b5f46d437
Signed-off-by: Lianwei Wang <a22439@motorola.com>
Reviewed-on: http://gerrit.mot.com/727323
SLTApproved: Slta Waiver <sltawvr@motorola.com>
SME-Granted: SME Approvals Granted
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
Diffstat (limited to 'kernel/pid.c')
0 files changed, 0 insertions, 0 deletions
