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

Skip to content
Commit acfbb287 authored by Tianyi Gou's avatar Tianyi Gou Committed by Stephen Boyd
Browse files

msm: clock-rpm: Remove last_set_khz/last_set_sleep_khz from rpm clk



Since last_set_khz and last_set_sleep_khz can be computed from the rate
value stored in the struct clk, remove them from rpm clk struct to avoid
unnecessary duplication.

By removing the duplication of data, this also fixes the issue caused by
clk.rate not matching last_set_khz/last_set_sleep_khz after a handoff.
The mismatch that occurs without this patch causes the call to
clk_set_rate() to return early without sending a new request to RPM when
the request rate is 1 * factor.

Change-Id: Ia47a8cea80441e51112715f14410d23e8c8fa00a
Signed-off-by: default avatarTianyi Gou <tgou@codeaurora.org>
parent 1993a7dd
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