clk: fractional-divider: Move mask calculations out of lock
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Sun, 3 Mar 2024 12:14:10 +0000 (14:14 +0200)
committerStephen Boyd <sboyd@kernel.org>
Sat, 9 Mar 2024 01:04:04 +0000 (17:04 -0800)
commit6e3f07f9df896fcb2ee80a7d61c70a64735590d9
tree477622f261a04bf103a381e90c9c27f48653266f
parent9b6c057bc1cec98dec34393ff329ff42a9461cb9
clk: fractional-divider: Move mask calculations out of lock

There is no need to calculate masks under the lock taken.
Move them out of it.

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20240303121410.240761-1-andy.shevchenko@gmail.com
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-fractional-divider.c