diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2014-10-23 08:13:08 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:50 -0400 |
commit | cc8e05c21533769d78f098149edb02e1f4394398 (patch) | |
tree | 18a0d39ef5c7c20e61328cc3eaf279178581b043 /drivers/gpu/nvgpu/gk20a/clk_gk20a.h | |
parent | fcf4a107996af1be341952447b0237338c0b76ea (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/clk_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/clk_gk20a.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/clk_gk20a.h b/drivers/gpu/nvgpu/gk20a/clk_gk20a.h index 255c1a7c..c766fc46 100644 --- a/drivers/gpu/nvgpu/gk20a/clk_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/clk_gk20a.h | |||
@@ -77,6 +77,13 @@ struct clk_gk20a { | |||
77 | bool debugfs_set; | 77 | bool debugfs_set; |
78 | }; | 78 | }; |
79 | 79 | ||
80 | struct gpu_ops; | ||
81 | #ifdef CONFIG_TEGRA_CLK_FRAMEWORK | ||
82 | void gk20a_init_clk_ops(struct gpu_ops *gops); | ||
83 | #else | ||
84 | static inline void gk20a_init_clk_ops(struct gpu_ops *gops) {} | ||
85 | #endif | ||
86 | |||
80 | /* APIs used for both GK20A and GM20B */ | 87 | /* APIs used for both GK20A and GM20B */ |
81 | unsigned long gk20a_clk_get_rate(struct gk20a *g); | 88 | unsigned long gk20a_clk_get_rate(struct gk20a *g); |
82 | int gk20a_clk_set_rate(struct gk20a *g, unsigned long rate); | 89 | int gk20a_clk_set_rate(struct gk20a *g, unsigned long rate); |