diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-04-10 16:47:37 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-13 16:44:41 -0400 |
commit | 947a23606351f1c81072cedcd4ab686d34042912 (patch) | |
tree | 79a29254b726d40713d06c6a17d71860c112cc64 /drivers/gpu/nvgpu/gm20b/pmu_gm20b.c | |
parent | 22426a5452ba943ac48867722fb0927baf66d4ac (diff) |
gpu: nvgpu: gm20b: Use new delay APIs
Use platform agnostic delay functions instead of Linux kernel APIs.
This allows removing dependency to Linux header linux/delay.h. At the
same time remove #include lines for other unused Linux headers.
JIRA NVGPU-16
Change-Id: I05df9d72edaf4bb061febe0cb40fc8a7cf9f51c7
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1460114
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/pmu_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/pmu_gm20b.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/pmu_gm20b.c b/drivers/gpu/nvgpu/gm20b/pmu_gm20b.c index 730c5eaf..109b3ca5 100644 --- a/drivers/gpu/nvgpu/gm20b/pmu_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/pmu_gm20b.c | |||
@@ -13,7 +13,6 @@ | |||
13 | * more details. | 13 | * more details. |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include <linux/delay.h> /* for udelay */ | ||
17 | #include <soc/tegra/fuse.h> | 16 | #include <soc/tegra/fuse.h> |
18 | 17 | ||
19 | #include "gk20a/gk20a.h" | 18 | #include "gk20a/gk20a.h" |
@@ -191,7 +190,7 @@ static int pmu_gm20b_ctx_wait_lsf_ready(struct gk20a *g, u32 timeout_ms, | |||
191 | reg = gk20a_readl(g, gr_fecs_ctxsw_mailbox_r(0)); | 190 | reg = gk20a_readl(g, gr_fecs_ctxsw_mailbox_r(0)); |
192 | if (reg == val) | 191 | if (reg == val) |
193 | return 0; | 192 | return 0; |
194 | udelay(delay); | 193 | nvgpu_udelay(delay); |
195 | } while (!nvgpu_timeout_expired(&timeout)); | 194 | } while (!nvgpu_timeout_expired(&timeout)); |
196 | 195 | ||
197 | return -ETIMEDOUT; | 196 | return -ETIMEDOUT; |