diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a_scale.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_scale.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_scale.c b/drivers/gpu/nvgpu/gk20a/gk20a_scale.c index ec9ca5db..ac28d967 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_scale.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_scale.c | |||
@@ -319,6 +319,9 @@ void gk20a_scale_init(struct device *dev) | |||
319 | if (g->scale_profile) | 319 | if (g->scale_profile) |
320 | return; | 320 | return; |
321 | 321 | ||
322 | if (!platform->devfreq_governor && !platform->qos_notify) | ||
323 | return; | ||
324 | |||
322 | profile = kzalloc(sizeof(*profile), GFP_KERNEL); | 325 | profile = kzalloc(sizeof(*profile), GFP_KERNEL); |
323 | 326 | ||
324 | profile->dev = dev; | 327 | profile->dev = dev; |