clk: qcom: clk-cpu-osm: Use CLK_GET_RATE_NOCACHE
After a CPU comes online, clk_set_rate silently refuses to change said CPU's frequency to the frequency it was running at before going offline (since it thinks that we are setting the same frequency redundantly). By default, each CPU runs at its minimum frequency when coming online, so if the governor decides to keep a CPU running at the frequency it used before going offline, then clk_set_rate will ignore the frequency change request and the CPU will stay stuck running at its minimum frequency for a potentially long period of time (i.e., until the governor decides to change the frequency to something different). This can cause severe lag when a device is woken up from deep sleep. In order to prevent a CPU from being stuck at its default frequency for a potentially long period of time, set the CLK_GET_RATE_NOCACHE flag so that the governor's frequency change requests will always be honored. Do this for the L3 clock as well. Signed-off-by:Sultan Alsawaf <sultan@kerneltoast.com> Signed-off-by:
Adam W. Willis <return.of.octobot@gmail.com> Signed-off-by:
Yaroslav Furman <yaro330@gmail.com>
Loading
Please register or sign in to comment