[PATCH v6 05/25] iommu: exynos: don't read version register on every tlb operation
Cho KyongHo
pullip.cho at samsung.com
Sun May 10 05:59:50 PDT 2015
On Mon, 04 May 2015 10:16:00 +0200 Marek Szyprowski <m.szyprowski at samsung.com> wrote:
> This patch removes reading of REG_MMU_VERSION register on every tlb
> operation and caches SYSMMU version in driver's internal data.
>
> Signed-off-by: Marek Szyprowski <m.szyprowski at samsung.com>
> ---
> drivers/iommu/exynos-iommu.c | 13 +++++--------
> 1 file changed, 5 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c
> index 3e898504a7c4..3861485f0689 100644
> --- a/drivers/iommu/exynos-iommu.c
> +++ b/drivers/iommu/exynos-iommu.c
> @@ -213,6 +213,7 @@ struct sysmmu_drvdata {
> spinlock_t lock;
> struct iommu_domain *domain;
> phys_addr_t pgtable;
> + int version;
Why don't you define its type as unsigned int or u32?
Regards,
KyongHo
More information about the linux-arm-kernel
mailing list