]> git.baikalelectronics.ru Git - kernel.git/commit
clk: use atomic runtime pm api in clk_core_is_enabled
authorDong Aisheng <aisheng.dong@nxp.com>
Fri, 22 Dec 2017 09:46:04 +0000 (17:46 +0800)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 27 Dec 2017 01:34:03 +0000 (17:34 -0800)
commitef4626df3c321958f824dd546991e97a28a77f16
tree9b6f57ac546ee543d41c14a1b13bd65d795ee4c4
parent9d8ef3ff1c5ec00f1c92ccd56527878d9e8325f0
clk: use atomic runtime pm api in clk_core_is_enabled

Current clk_pm_runtime_put is using pm_runtime_put_sync which
is not safe to be called in clk_core_is_enabled as it should
be able to run in atomic context.

Thus use pm_runtime_put instead which is atomic safe.

Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Fixes: d2cb18dd015a ("clk: Add support for runtime PM")
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk.c