summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a_scale.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2014-10-23 08:13:08 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:11:50 -0400
commitcc8e05c21533769d78f098149edb02e1f4394398 (patch)
tree18a0d39ef5c7c20e61328cc3eaf279178581b043 /drivers/gpu/nvgpu/gk20a/gk20a_scale.h
parentfcf4a107996af1be341952447b0237338c0b76ea (diff)
gpu: nvgpu: Fix build without Tegra clk framework
Do not build clock code if TEGRA_CLK_FRAMEWORK is not defined. Also make GK20A_DEVFREQ depend on TEGRA_CLK_FRAMEWORK, and build scaling governor only if GK20A_DEVFREQ is enabled. Bug 1567274 Change-Id: I6ea1462e7a110fb46c9d66ceda71167cff19699e Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/562475
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