diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-06-19 17:13:14 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-20 14:35:29 -0400 |
commit | 9f65627d0edaa45d914d2d180caf1b687e3c0d09 (patch) | |
tree | ed7afd33e5b87f0952c534b239b39fbd816705e4 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 2525dc37967077554520f20c95c0a25080e3b872 (diff) |
gpu: nvgpu: Pass struct gk20a to busy and resume
Pass struct gk20a pointer to gk20a_busy_noresume() and
gk20a_idle_nosuspend(). This reduces the number of dependencies to
Linux specific struct device.
JIRA NVGPU-38
Change-Id: I5e05be32e2376bc8be5402bb973c20e28c35a1c3
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1505177
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 843a9e91..f91e86df 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -1475,8 +1475,8 @@ void gk20a_remove_sysfs(struct device *dev); | |||
1475 | #define GK20A_BAR1_IORESOURCE_MEM 1 | 1475 | #define GK20A_BAR1_IORESOURCE_MEM 1 |
1476 | #define GK20A_SIM_IORESOURCE_MEM 2 | 1476 | #define GK20A_SIM_IORESOURCE_MEM 2 |
1477 | 1477 | ||
1478 | void gk20a_busy_noresume(struct device *dev); | 1478 | void gk20a_busy_noresume(struct gk20a *g); |
1479 | void gk20a_idle_nosuspend(struct device *dev); | 1479 | void gk20a_idle_nosuspend(struct gk20a *g); |
1480 | int __must_check gk20a_busy(struct gk20a *g); | 1480 | int __must_check gk20a_busy(struct gk20a *g); |
1481 | void gk20a_idle(struct gk20a *g); | 1481 | void gk20a_idle(struct gk20a *g); |
1482 | int __gk20a_do_idle(struct gk20a *g, bool force_reset); | 1482 | int __gk20a_do_idle(struct gk20a *g, bool force_reset); |