summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a_scale.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a_scale.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a_scale.h7
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 {
37void gk20a_scale_init(struct platform_device *); 37void gk20a_scale_init(struct platform_device *);
38void gk20a_scale_hw_init(struct platform_device *pdev); 38void 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
47void gk20a_scale_suspend(struct platform_device *); 48void gk20a_scale_suspend(struct platform_device *);
48void gk20a_scale_resume(struct platform_device *); 49void gk20a_scale_resume(struct platform_device *);
50#else
51static inline void gk20a_scale_notify_busy(struct platform_device *pdev) {}
52static inline void gk20a_scale_notify_idle(struct platform_device *pdev) {}
53static inline void gk20a_scale_suspend(struct platform_device *pdev) {}
54static inline void gk20a_scale_resume(struct platform_device *pdev) {}
55#endif
49 56
50#endif 57#endif