summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c
index 880ed0ed..99c7e8b3 100644
--- a/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c
+++ b/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c
@@ -343,7 +343,8 @@ static void gk20a_tegra_calibrate_emc(struct device *dev,
343} 343}
344 344
345#ifdef CONFIG_TEGRA_BWMGR 345#ifdef CONFIG_TEGRA_BWMGR
346void gm20b_bwmgr_set_rate(struct gk20a_platform *platform, bool enb) 346#ifdef CONFIG_TEGRA_DVFS
347static void gm20b_bwmgr_set_rate(struct gk20a_platform *platform, bool enb)
347{ 348{
348 struct gk20a_scale_profile *profile = platform->g->scale_profile; 349 struct gk20a_scale_profile *profile = platform->g->scale_profile;
349 struct gk20a_emc_params *params; 350 struct gk20a_emc_params *params;
@@ -356,6 +357,7 @@ void gm20b_bwmgr_set_rate(struct gk20a_platform *platform, bool enb)
356 rate = (enb) ? params->freq_last_set : 0; 357 rate = (enb) ? params->freq_last_set : 0;
357 tegra_bwmgr_set_emc(params->bwmgr_cl, rate, TEGRA_BWMGR_SET_EMC_FLOOR); 358 tegra_bwmgr_set_emc(params->bwmgr_cl, rate, TEGRA_BWMGR_SET_EMC_FLOOR);
358} 359}
360#endif
359 361
360static void gm20b_tegra_postscale(struct device *dev, unsigned long freq) 362static void gm20b_tegra_postscale(struct device *dev, unsigned long freq)
361{ 363{