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/gm20b | |
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/gm20b')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/clk_gm20b.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/clk_gm20b.h b/drivers/gpu/nvgpu/gm20b/clk_gm20b.h index cac5708c..84a2ce9a 100644 --- a/drivers/gpu/nvgpu/gm20b/clk_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/clk_gm20b.h | |||
@@ -21,6 +21,10 @@ | |||
21 | 21 | ||
22 | #include <linux/mutex.h> | 22 | #include <linux/mutex.h> |
23 | 23 | ||
24 | #ifdef CONFIG_TEGRA_CLK_FRAMEWORK | ||
24 | void gm20b_init_clk_ops(struct gpu_ops *gops); | 25 | void gm20b_init_clk_ops(struct gpu_ops *gops); |
26 | #else | ||
27 | static inline void gm20b_init_clk_ops(struct gpu_ops *gops) {} | ||
28 | #endif | ||
25 | 29 | ||
26 | #endif /* _NVHOST_CLK_GM20B_H_ */ | 30 | #endif /* _NVHOST_CLK_GM20B_H_ */ |