gpu: nvgpu: Include tegra_emc.h only if bwmgr is present

tegra-emc.h is needed only for EMC DVFS, and only when bandwidth
manager is present in kernel. Move #include directive for tegra-emc.h
to inside #ifdef CONFIG_TEGRA_BWMGR.

Bug 3030537

Change-Id: Ib812219eff6bab4c3add4f9d8583abe43957c997
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2371388
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Terje Bergstrom
2020-07-06 13:20:58 -07:00
committed by Alex Waterman
parent bb008aeca6
commit 42ff9ca4d4

View File

@@ -38,9 +38,9 @@
#ifdef CONFIG_TEGRA_BWMGR
#include <linux/platform/tegra/emc_bwmgr.h>
#include <linux/platform/tegra/tegra_emc.h>
#endif
#include <linux/platform/tegra/tegra_emc.h>
#ifdef CONFIG_NVGPU_TEGRA_FUSE
#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)