diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2017-05-10 11:05:24 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-05 02:05:18 -0400 |
commit | 673dd971600b26131c0afdb221e13c080da022fd (patch) | |
tree | 7c8416ac2ef61891812773d55c8c8dc61da824aa /drivers/gpu/nvgpu/gm20b/pmu_gm20b.c | |
parent | 7668ccb2a2e4a8c13d82b427c65be79c725afe08 (diff) |
gpu: nvgpu: moved & renamed "struct pmu_gk20a"
- Renamed "struct pmu_gk20a" to "struct nvgpu_pmu" then moved
to file "pmu.h" under folder "drivers/gpu/nvgpu/include/nvgpu/"
- Included header file "pmu.h" to dependent file &
removed "pmu_gk20a.h" include if its usage is not present.
- Replaced "struct pmu_gk20a" with "struct nvgpu_pmu" in dependent
source & header files.
JIRA NVGPU-56
Change-Id: Ia3c606616831027093d5c216959c6a40d7c2632e
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: http://git-master/r/1479209
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/pmu_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/pmu_gm20b.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/pmu_gm20b.c b/drivers/gpu/nvgpu/gm20b/pmu_gm20b.c index 109b3ca5..34c2c373 100644 --- a/drivers/gpu/nvgpu/gm20b/pmu_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/pmu_gm20b.c | |||
@@ -15,14 +15,15 @@ | |||
15 | 15 | ||
16 | #include <soc/tegra/fuse.h> | 16 | #include <soc/tegra/fuse.h> |
17 | 17 | ||
18 | #include <nvgpu/timers.h> | ||
19 | #include <nvgpu/pmu.h> | ||
20 | |||
18 | #include "gk20a/gk20a.h" | 21 | #include "gk20a/gk20a.h" |
19 | #include "gk20a/pmu_gk20a.h" | 22 | #include "gk20a/pmu_gk20a.h" |
20 | 23 | ||
21 | #include "acr_gm20b.h" | 24 | #include "acr_gm20b.h" |
22 | #include "pmu_gm20b.h" | 25 | #include "pmu_gm20b.h" |
23 | 26 | ||
24 | #include <nvgpu/timers.h> | ||
25 | |||
26 | #include <nvgpu/hw/gm20b/hw_gr_gm20b.h> | 27 | #include <nvgpu/hw/gm20b/hw_gr_gm20b.h> |
27 | #include <nvgpu/hw/gm20b/hw_pwr_gm20b.h> | 28 | #include <nvgpu/hw/gm20b/hw_pwr_gm20b.h> |
28 | #include <nvgpu/hw/gm20b/hw_fuse_gm20b.h> | 29 | #include <nvgpu/hw/gm20b/hw_fuse_gm20b.h> |
@@ -138,7 +139,7 @@ static void pmu_handle_acr_init_wpr_msg(struct gk20a *g, struct pmu_msg *msg, | |||
138 | 139 | ||
139 | int gm20b_pmu_init_acr(struct gk20a *g) | 140 | int gm20b_pmu_init_acr(struct gk20a *g) |
140 | { | 141 | { |
141 | struct pmu_gk20a *pmu = &g->pmu; | 142 | struct nvgpu_pmu *pmu = &g->pmu; |
142 | struct pmu_cmd cmd; | 143 | struct pmu_cmd cmd; |
143 | u32 seq; | 144 | u32 seq; |
144 | 145 | ||
@@ -198,7 +199,7 @@ static int pmu_gm20b_ctx_wait_lsf_ready(struct gk20a *g, u32 timeout_ms, | |||
198 | 199 | ||
199 | void gm20b_pmu_load_lsf(struct gk20a *g, u32 falcon_id, u32 flags) | 200 | void gm20b_pmu_load_lsf(struct gk20a *g, u32 falcon_id, u32 flags) |
200 | { | 201 | { |
201 | struct pmu_gk20a *pmu = &g->pmu; | 202 | struct nvgpu_pmu *pmu = &g->pmu; |
202 | struct pmu_cmd cmd; | 203 | struct pmu_cmd cmd; |
203 | u32 seq; | 204 | u32 seq; |
204 | 205 | ||