mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: return from scale_init() if no profile
In gp10b_tegra_scale_init(), return immediately if CONFIG_GK20A_DEVFREQ is disabled and profile is NULL Change-Id: I08e15afdc72bef62a4fb43f30b74cebf8a4b0d68 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/1125444 GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
This commit is contained in:
@@ -93,6 +93,9 @@ static void gp10b_tegra_scale_init(struct device *dev)
|
||||
struct gk20a_scale_profile *profile = platform->g->scale_profile;
|
||||
struct tegra_bwmgr_client *bwmgr_handle;
|
||||
|
||||
if (!profile)
|
||||
return;
|
||||
|
||||
bwmgr_handle = tegra_bwmgr_register(TEGRA_BWMGR_CLIENT_GPU);
|
||||
if (!bwmgr_handle)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user