[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1353373552-16039-2-git-send-email-omar.luna@linaro.org>
Date: Mon, 19 Nov 2012 19:05:48 -0600
From: Omar Ramirez Luna <omar.luna@...aro.org>
To: Tony Lindgren <tony@...mide.com>, Joerg Roedel <joro@...tes.org>
Cc: Russell King <linux@....linux.org.uk>,
Ohad Ben-Cohen <ohad@...ery.com>,
Omar Ramirez Luna <omar.luna@...aro.org>,
Ido Yariv <ido@...ery.com>,
Mauro Carvalho Chehab <mchehab@...hat.com>,
Paul Walmsley <paul@...an.com>,
Felipe Contreras <felipe.contreras@...il.com>,
linux-omap@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org, iommu@...ts.linux-foundation.org
Subject: [PATCH v5 1/5] iommu/omap: remove redundant clock handling on ISR
For the interrupt to be generated, the mmu clock should be already
enabled while translating a virtual address, so, this call to clock
handling is just increasing/decreasing the counter.
This works now, because its users need the same clock and they
indirectly power the mmu, in this interrupt context the handling of
clocks inside the ISR doesn't seem to be needed nor helping.
Next patch should also correct the dependency on clients to handle
iommu clocks.
Signed-off-by: Omar Ramirez Luna <omar.luna@...aro.org>
---
drivers/iommu/omap-iommu.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c
index badc17c..6b1288c 100644
--- a/drivers/iommu/omap-iommu.c
+++ b/drivers/iommu/omap-iommu.c
@@ -807,9 +807,7 @@ static irqreturn_t iommu_fault_handler(int irq, void *data)
if (!obj->refcount)
return IRQ_NONE;
- clk_enable(obj->clk);
errs = iommu_report_fault(obj, &da);
- clk_disable(obj->clk);
if (errs == 0)
return IRQ_HANDLED;
--
1.7.4.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists