diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a_scale.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_scale.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_scale.h b/drivers/gpu/nvgpu/gk20a/gk20a_scale.h index 561ecaed..81c23b68 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_scale.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a_scale.h | |||
@@ -37,6 +37,7 @@ struct gk20a_scale_profile { | |||
37 | void gk20a_scale_init(struct platform_device *); | 37 | void gk20a_scale_init(struct platform_device *); |
38 | void gk20a_scale_hw_init(struct platform_device *pdev); | 38 | void gk20a_scale_hw_init(struct platform_device *pdev); |
39 | 39 | ||
40 | #ifdef CONFIG_GK20A_DEVFREQ | ||
40 | /* | 41 | /* |
41 | * call when performing submit to notify scaling mechanism that the module is | 42 | * call when performing submit to notify scaling mechanism that the module is |
42 | * in use | 43 | * in use |
@@ -46,5 +47,11 @@ void gk20a_scale_notify_idle(struct platform_device *); | |||
46 | 47 | ||
47 | void gk20a_scale_suspend(struct platform_device *); | 48 | void gk20a_scale_suspend(struct platform_device *); |
48 | void gk20a_scale_resume(struct platform_device *); | 49 | void gk20a_scale_resume(struct platform_device *); |
50 | #else | ||
51 | static inline void gk20a_scale_notify_busy(struct platform_device *pdev) {} | ||
52 | static inline void gk20a_scale_notify_idle(struct platform_device *pdev) {} | ||
53 | static inline void gk20a_scale_suspend(struct platform_device *pdev) {} | ||
54 | static inline void gk20a_scale_resume(struct platform_device *pdev) {} | ||
55 | #endif | ||
49 | 56 | ||
50 | #endif | 57 | #endif |