From 5121bd4b6f2a41b3db045cca7246f9b1832c8648 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 29 Nov 2017 15:53:24 -0800 Subject: gpu: nvpgu: Move GR IDLE timeout definition to header GR IDLE timeout is defined as Kconfig. Instead of that introduce a new header file defaults.h which encapsulates any generic defaults we use in nvgpu, and move the definition there. Change-Id: I78ff1d2790d7ee3dff6df42bbd11cf683a85bf79 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1612650 GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/driver_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/common/linux/driver_common.c') diff --git a/drivers/gpu/nvgpu/common/linux/driver_common.c b/drivers/gpu/nvgpu/common/linux/driver_common.c index 425198d5..51ae18a3 100644 --- a/drivers/gpu/nvgpu/common/linux/driver_common.c +++ b/drivers/gpu/nvgpu/common/linux/driver_common.c @@ -18,6 +18,7 @@ #include #include +#include #include #include #include @@ -88,7 +89,7 @@ static void nvgpu_init_timeout(struct gk20a *g) { struct gk20a_platform *platform = dev_get_drvdata(dev_from_gk20a(g)); - g->gr_idle_timeout_default = CONFIG_GK20A_DEFAULT_TIMEOUT; + g->gr_idle_timeout_default = NVGPU_DEFAULT_GR_IDLE_TIMEOUT; if (nvgpu_platform_is_silicon(g)) g->timeouts_enabled = true; else if (nvgpu_platform_is_fpga(g)) { -- cgit v1.2.2