diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c index a28f1094..36ca850e 100644 --- a/drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c +++ b/drivers/gpu/nvgpu/common/linux/platform_gk20a_tegra.c | |||
@@ -314,15 +314,12 @@ static void gm20b_tegra_postscale(struct device *dev, unsigned long freq) | |||
314 | emc_rate = tegra_bwmgr_get_max_emc_rate(); | 314 | emc_rate = tegra_bwmgr_get_max_emc_rate(); |
315 | 315 | ||
316 | emc_params->freq_last_set = emc_rate; | 316 | emc_params->freq_last_set = emc_rate; |
317 | nvgpu_mutex_acquire(&platform->railgate_lock); | ||
318 | if (platform->is_railgated && platform->is_railgated(dev)) | 317 | if (platform->is_railgated && platform->is_railgated(dev)) |
319 | goto done; | 318 | return; |
320 | 319 | ||
321 | tegra_bwmgr_set_emc(emc_params->bwmgr_cl, emc_rate, | 320 | tegra_bwmgr_set_emc(emc_params->bwmgr_cl, emc_rate, |
322 | TEGRA_BWMGR_SET_EMC_FLOOR); | 321 | TEGRA_BWMGR_SET_EMC_FLOOR); |
323 | 322 | ||
324 | done: | ||
325 | nvgpu_mutex_release(&platform->railgate_lock); | ||
326 | } | 323 | } |
327 | 324 | ||
328 | #endif | 325 | #endif |