OSDN Git Service

iommu: Add {enable,disable}_config_clocks ops
authorMitchel Humpherys <mitchelh@codeaurora.org>
Tue, 15 Dec 2015 00:04:46 +0000 (16:04 -0800)
committerJeevan Shriram <jshriram@codeaurora.org>
Sat, 21 May 2016 02:23:57 +0000 (19:23 -0700)
commitfc72f2237909081f1953b5363d4b7258b14ebce5
treef069bc4ede293c2559da30f7ffc8aea0557f53cd
parent19c21eee9ed01fe95973777a62876a17d5d34cd3
iommu: Add {enable,disable}_config_clocks ops

There are certain use cases where it might be necessary to leave the
IOMMU's configuration clocks on.  This might happen in places where an
IOMMU's clocks might not be known.  A good example of this would be a
test library that needs to be able to do TLB invalidation from atomic
context.  It would need to enable clocks up front (outside of atomic
context) and leave them on for the duration of the test.

Add some ops for enabling and disabling configuration clocks.

CRs-Fixed: 997751
Change-Id: I95056952f60494fe5745f2183f9af8aab3a40315
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
include/linux/iommu.h