diff options
author | Andreas Kemnade <andreas@kemnade.info> | 2019-01-17 01:04:27 +0300 |
---|---|---|
committer | Tero Kristo <t-kristo@ti.com> | 2019-02-15 17:47:55 +0300 |
commit | d277ce2d3a75c6c116a6119c3745694f5941eff5 (patch) | |
tree | cec5a936cac3b1f07daaf4cead9a3d1feae37a3a /include/linux/clk | |
parent | ead478250b950f1f082d4cb57bed3adeacfe53c3 (diff) | |
download | linux-d277ce2d3a75c6c116a6119c3745694f5941eff5.tar.xz |
clk: ti: add a usecount for autoidle
Multiple users might deny autoidle on a clock. So we should have some
counting here, also according to the comment in _setup_iclk_autoidle().
Also setting autoidle regs is not atomic, so there is another reason
for locking.
Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Diffstat (limited to 'include/linux/clk')
-rw-r--r-- | include/linux/clk/ti.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/clk/ti.h b/include/linux/clk/ti.h index eacc5df57b99..78872efc7be0 100644 --- a/include/linux/clk/ti.h +++ b/include/linux/clk/ti.h @@ -160,6 +160,7 @@ struct clk_hw_omap { struct clockdomain *clkdm; const struct clk_hw_omap_ops *ops; u32 context; + int autoidle_count; }; /* |