aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpiutil.c
diff options
context:
space:
mode:
authorPeng Fan <[email protected]>2024-08-06 22:56:01 +0800
committerStephen Boyd <[email protected]>2024-08-27 12:11:45 -0700
commitfc953d40bd4318b45adc63db42c3cd5d2c5b0661 (patch)
tree1207d211f6325701b33eff6258ae9d6290ba740a /lib/crypto/mpi/mpiutil.c
parent8400291e289ee6b2bf9779ff1c83a291501f017b (diff)
clk: scmi: add is_prepared hook
Some clocks maybe default enabled by hardware. For clocks that don't have users, that will be left in hardware default state, because prepare count and enable count is zero,if there is no is_prepared hook to get the hardware state. So add is_prepared hook to detect the hardware state. Then when disabling the unused clocks, they can be simply turned OFF to save power during kernel boot. Reviewed-by: Dhruva Gole <[email protected]> Signed-off-by: Peng Fan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Sudeep Holla <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions