Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <bernard@vivo.com>
Acked-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>

authored by

Bernard Zhao and committed by
Krzysztof Kozlowski
108c31e7 4bff7214

+2 -4
+2 -4
drivers/memory/samsung/exynos5422-dmc.c
··· 1346 1346 struct exynos5_dmc *dmc = priv; 1347 1347 1348 1348 mutex_lock(&dmc->df->lock); 1349 - 1350 1349 exynos5_dmc_perf_events_check(dmc); 1351 - 1352 1350 res = update_devfreq(dmc->df); 1351 + mutex_unlock(&dmc->df->lock); 1352 + 1353 1353 if (res) 1354 1354 dev_warn(dmc->dev, "devfreq failed with %d\n", res); 1355 - 1356 - mutex_unlock(&dmc->df->lock); 1357 1355 1358 1356 return IRQ_HANDLED; 1359 1357 }