diff options
| author | Chuan Liu <[email protected]> | 2024-09-10 05:53:44 +0000 |
|---|---|---|
| committer | Stephen Boyd <[email protected]> | 2024-11-19 03:51:28 +0000 |
| commit | 25f1c96a0e841013647d788d4598e364e5c2ebb7 (patch) | |
| tree | f7225391da7df9944fc6b19b66fa5015970e2155 /rust/helpers/task.c | |
| parent | clk: clk-loongson2: Fix memory corruption bug in struct loongson2_clk_provider (diff) | |
| download | kernel-25f1c96a0e841013647d788d4598e364e5c2ebb7.tar.gz kernel-25f1c96a0e841013647d788d4598e364e5c2ebb7.zip | |
clk: Fix invalid execution of clk_set_rate
Some clocks have rates that can be changed elsewhere, so add a flag
CLK_GET_RATE_NOCACHE(such as scmi_clk) to these clocks to ensure that
the real-time rate is obtained.
When clk_set_rate is called, it is returned if the request to set rate
is consistent with the current rate. Getting the current rate in
clk_set_rate returns the rate stored in clk_core. CLK_GET_RATE_NOCACHE
does not take effect here.
Signed-off-by: Chuan Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions
