diff options
author | Mike Turquette <mturquette@linaro.org> | 2014-08-28 02:36:37 +0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-09-02 04:43:52 +0400 |
commit | 87e392164ab6c0f3f055f8483dc7dc3f1afa19ad (patch) | |
tree | cf29e87ab8c5243a4771e782106259ca4ab50ed2 /drivers/clk/mvebu/common.h | |
parent | 69e273c0b0a3c337a521d083374c918dc52c666f (diff) | |
download | linux-87e392164ab6c0f3f055f8483dc7dc3f1afa19ad.tar.xz |
clk: mvebu: share locks between gate clocks
Refactor mvebu_clk_gating_setup() to use a common spinlock instead of a
unique lock for every instance of a struct clk_gating_ctrl object. This
will be used later for a separate mux clock type that shares a register
with gate clock types and needs to use the same lock to protect access
to the register.
Cc: Andrew Lunn <andrew@lunn.ch>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/mvebu/common.h')
-rw-r--r-- | drivers/clk/mvebu/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/mvebu/common.h b/drivers/clk/mvebu/common.h index f968b4d9df92..8cd28e47471c 100644 --- a/drivers/clk/mvebu/common.h +++ b/drivers/clk/mvebu/common.h @@ -17,6 +17,8 @@ #include <linux/kernel.h> +extern spinlock_t ctrl_gating_lock; + struct device_node; struct coreclk_ratio { |