mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
gpu: nvgpu: fix sparse warning
Declare bwmgr_set_rate as static since it is not used globally. Bug 200067946 Change-Id: Ic853ff34b88aae90d0f8821478bcabeaa0cbd7ac Signed-off-by: Srikar Srimath Tirumala <srikars@nvidia.com> Reviewed-on: http://git-master/r/1469946 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
1f07668338
commit
0a141c90af
@@ -343,7 +343,8 @@ static void gk20a_tegra_calibrate_emc(struct device *dev,
|
||||
}
|
||||
|
||||
#ifdef CONFIG_TEGRA_BWMGR
|
||||
void gm20b_bwmgr_set_rate(struct gk20a_platform *platform, bool enb)
|
||||
#ifdef CONFIG_TEGRA_DVFS
|
||||
static void gm20b_bwmgr_set_rate(struct gk20a_platform *platform, bool enb)
|
||||
{
|
||||
struct gk20a_scale_profile *profile = platform->g->scale_profile;
|
||||
struct gk20a_emc_params *params;
|
||||
@@ -356,6 +357,7 @@ void gm20b_bwmgr_set_rate(struct gk20a_platform *platform, bool enb)
|
||||
rate = (enb) ? params->freq_last_set : 0;
|
||||
tegra_bwmgr_set_emc(params->bwmgr_cl, rate, TEGRA_BWMGR_SET_EMC_FLOOR);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void gm20b_tegra_postscale(struct device *dev, unsigned long freq)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user