diff options
| author | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-07-27 08:29:36 -0400 |
|---|---|---|
| committer | Thierry Reding <treding@nvidia.com> | 2015-08-13 10:06:40 -0400 |
| commit | 4b3c7d10765403ab19628fb7d530b8ce1c50b81d (patch) | |
| tree | d0dff12de7f9a34aa2b86479cc6d0180b6d7d642 /include/soc/tegra | |
| parent | 32924c76b0cbc67aa4cf0741f7bc6c37f097aaf3 (diff) | |
iommu/tegra-smmu: Move flush_dcache to tegra-smmu.c
Drivers should not be using __cpuc_* functions nor outer_cache_flush()
directly. This change partly cleans up tegra-smmu.c.
The only difference between cache handling of the tegra variants is
Denver, which omits the call to outer_cache_flush(). This is due to
Denver being an ARM64 CPU, and the ARM64 architecture does not provide
this function. (This, in itself, is a good reason why these should not
be used.)
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
[treding@nvidia.com: fix build failure on 64-bit ARM]
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include/soc/tegra')
| -rw-r--r-- | include/soc/tegra/mc.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/soc/tegra/mc.h b/include/soc/tegra/mc.h index 1ab2813273cd..d6c3190ec852 100644 --- a/include/soc/tegra/mc.h +++ b/include/soc/tegra/mc.h | |||
| @@ -51,11 +51,6 @@ struct tegra_smmu_swgroup { | |||
| 51 | unsigned int reg; | 51 | unsigned int reg; |
| 52 | }; | 52 | }; |
| 53 | 53 | ||
| 54 | struct tegra_smmu_ops { | ||
| 55 | void (*flush_dcache)(struct page *page, unsigned long offset, | ||
| 56 | size_t size); | ||
| 57 | }; | ||
| 58 | |||
| 59 | struct tegra_smmu_soc { | 54 | struct tegra_smmu_soc { |
| 60 | const struct tegra_mc_client *clients; | 55 | const struct tegra_mc_client *clients; |
| 61 | unsigned int num_clients; | 56 | unsigned int num_clients; |
| @@ -67,8 +62,6 @@ struct tegra_smmu_soc { | |||
| 67 | bool supports_request_limit; | 62 | bool supports_request_limit; |
| 68 | 63 | ||
| 69 | unsigned int num_asids; | 64 | unsigned int num_asids; |
| 70 | |||
| 71 | const struct tegra_smmu_ops *ops; | ||
| 72 | }; | 65 | }; |
| 73 | 66 | ||
| 74 | struct tegra_mc; | 67 | struct tegra_mc; |
