diff options
| author | Liam Mark <lmark@codeaurora.org> | 2015-06-19 10:14:31 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:13:08 -0700 |
| commit | 057dffa6b91cb8349fa2e10c4ef849a1fe9da105 (patch) | |
| tree | 19e98cafb2634da5f4b84aa79d7ebcca748ace19 /include/linux | |
| parent | e723f7b4a1d1b002fdce058ef119fcb1d4835bb5 (diff) | |
iommu/arm-smmu: lock clock enabling and reference counting
Ensure that clock enabling and reference counting is done atomically
to avoid any potential race conditions.
An example of a potential race condition is that while thread one is
enabling the clocks thread two could enter and then exit the clock
enabling function early because of reference counting. This could
lead to thread two attempting to access registers before the clocks
are enabled.
Have removed the regulator reference because enabling the regulators
involves the use of a mutex so spin locks cannot be used to protect
the reference count. Also the use of a regulator reference count is
of limited benefit since there is only one regulator to enable.
Change-Id: I7215bbf9157907fde24c94841e347370769423c8
Signed-off-by: Liam Mark <lmark@codeaurora.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
