Skip to content

Commit 108c31e

Browse files
Bernard Zhaokrzk
authored andcommitted
memory: samsung: exynos5422-dmc: Reduce protected code area in IRQ handler
Speed-up a bit this IRQ processing as there is no need to protect return value or printing. Signed-off-by: Bernard Zhao <[email protected]> Acked-by: Lukasz Luba <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent 4bff721 commit 108c31e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/memory/samsung/exynos5422-dmc.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,15 +1346,13 @@ static irqreturn_t dmc_irq_thread(int irq, void *priv)
13461346
struct exynos5_dmc *dmc = priv;
13471347

13481348
mutex_lock(&dmc->df->lock);
1349-
13501349
exynos5_dmc_perf_events_check(dmc);
1351-
13521350
res = update_devfreq(dmc->df);
1351+
mutex_unlock(&dmc->df->lock);
1352+
13531353
if (res)
13541354
dev_warn(dmc->dev, "devfreq failed with %d\n", res);
13551355

1356-
mutex_unlock(&dmc->df->lock);
1357-
13581356
return IRQ_HANDLED;
13591357
}
13601358

0 commit comments

Comments
 (0)