diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-04-14 18:12:57 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-14 03:05:12 -0400 |
commit | 7acc993cdbcc202854f188e7f53646f387573a09 (patch) | |
tree | 61d213424ed8985973fa7ee3e4580c7b1b95bd3b /drivers/gpu/nvgpu/gk20a/platform_gk20a.h | |
parent | ab22d66386e3a23e0dfe897bca25e01623f6d61c (diff) |
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 <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1463543
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/platform_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a.h | 7 |
1 files changed, 2 insertions, 5 deletions
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 { | |||
39 | struct gk20a *g; | 39 | struct gk20a *g; |
40 | 40 | ||
41 | /* Should be populated at probe. */ | 41 | /* Should be populated at probe. */ |
42 | bool can_railgate; | 42 | bool can_railgate_init; |
43 | |||
44 | /* Set by User while disabling railgating */ | ||
45 | bool user_railgate_disabled; | ||
46 | 43 | ||
47 | /* Should be populated at probe. */ | 44 | /* Should be populated at probe. */ |
48 | bool can_elpg; | 45 | bool can_elpg; |
@@ -77,7 +74,7 @@ struct gk20a_platform { | |||
77 | #endif | 74 | #endif |
78 | 75 | ||
79 | /* Delay before rail gated */ | 76 | /* Delay before rail gated */ |
80 | int railgate_delay; | 77 | int railgate_delay_init; |
81 | 78 | ||
82 | /* Second Level Clock Gating: true = enable false = disable */ | 79 | /* Second Level Clock Gating: true = enable false = disable */ |
83 | bool enable_slcg; | 80 | bool enable_slcg; |