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

Skip to content
Commit eec9358f authored by Junjie Wu's avatar Junjie Wu Committed by Stephen Boyd
Browse files

msm: clock-dummy: Rate-setable independent dummy clocks



Previously dummy clocks share same underlying clk struct.  clk_get_rate()
always returns 0.  Add a new macro DEFINE_CLK_DUMMY to create different
dummy clocks.  These clocks remember last set rate and return it for
clk_get_rate().  This is necessary for fake clocks to return desired
rate in virtio.

For any dummy clock that might need to handle clk_get_rate(), the new
macro is recommended.

Change-Id: I3a279edf6e41a0ae2777400adf992a9f26d77287
Signed-off-by: default avatarJunjie Wu <junjiew@codeaurora.org>
parent 2d39ac6d
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