From 7acc993cdbcc202854f188e7f53646f387573a09 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Fri, 14 Apr 2017 15:12:57 -0700 Subject: gpu: nvgpu: Move can_railgate & railgate_delay to gk20a Copy can_railgate and railgate_delay to struct gk20a at probe time, and access them from gk20a instead of platform_gk20a. JIRA NVGPU-16 Change-Id: I63d4f4aff7eb17a167775fd7982a1b548bbca3a5 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1463543 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/platform_gk20a.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/platform_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h index 44277abf..2cbc1056 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h @@ -39,10 +39,7 @@ struct gk20a_platform { struct gk20a *g; /* Should be populated at probe. */ - bool can_railgate; - - /* Set by User while disabling railgating */ - bool user_railgate_disabled; + bool can_railgate_init; /* Should be populated at probe. */ bool can_elpg; @@ -77,7 +74,7 @@ struct gk20a_platform { #endif /* Delay before rail gated */ - int railgate_delay; + int railgate_delay_init; /* Second Level Clock Gating: true = enable false = disable */ bool enable_slcg; -- cgit v1.2.2