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

Commit 21ad06b7 authored by Olav Haugan's avatar Olav Haugan Committed by Mahesh Sivasubramanian
Browse files

msm-core: Ensure polling occurs on schedule



MSM core driver is supposed to update power cost and cpu temperature on a
fixed interval in addition to when there is a large change in temperature.
There is a poll_ms parameter that is set to 50ms by default that should
cause the driver to poll for updates every 50ms. It has been observed that
this polling can stop for up to several minutes.

The issue is identified with the optimization in the polling code which
stalls polling if temperature didn't change between two consecutive
readings and polling isn't started until after a large temperature change
triggers the polling thread. Fix issue by removing the optimization.

Change-Id: I0e140e7681d404a1f03650bef725e86d5c39243c
Signed-off-by: default avatarOlav Haugan <ohaugan@codeaurora.org>
parent b403721f
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