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

Skip to content
Commit b3c3ac57 authored by Lianwei Wang's avatar Lianwei Wang Committed by alexax66
Browse files

tick: don't update idle time if cpu offline


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: I00deb4cbcaec18f7625ee774bf4c3e643330dd5f
Signed-off-by: default avatarLianwei Wang <a22439@motorola.com>
Reviewed-on: http://gerrit.mot.com/695764


SLTApproved: Slta Waiver <sltawvr@motorola.com>
Tested-by: default avatarJira Key <jirakey@motorola.com>
Reviewed-by: default avatarChristopher Fries <cfries@motorola.com>
Reviewed-by: default avatarIgor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
[picked from http://goo.gl/lLF51X

]
Signed-off-by: default avatarfranciscofranco <franciscofranco.1990@gmail.com>

Used commits:
 https://github.com/mythos234/SimplKernel-LL-G925F/commit/1c9f26ace4386201f4ea493b94b9edb064c6c090
 https://github.com/alexax66/kernel_samsung_a3xelte/commit/ba403c974ef439899cc76528a9df1e876dd58293
parent 67132e14
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