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/fifo_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/fifo_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/fifo_gm20b.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c b/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c index af2a8cd2..ed3a4b98 100644 --- a/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c | |||
@@ -13,8 +13,6 @@ | |||
13 | * more details. | 13 | * more details. |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include <linux/delay.h> | ||
17 | |||
18 | #include "gk20a/gk20a.h" | 16 | #include "gk20a/gk20a.h" |
19 | #include "gk20a/fifo_gk20a.h" | 17 | #include "gk20a/fifo_gk20a.h" |
20 | 18 | ||
@@ -103,7 +101,7 @@ static void gm20b_fifo_trigger_mmu_fault(struct gk20a *g, | |||
103 | break; | 101 | break; |
104 | } | 102 | } |
105 | 103 | ||
106 | usleep_range(delay, delay * 2); | 104 | nvgpu_usleep_range(delay, delay * 2); |
107 | delay = min_t(u32, delay << 1, GR_IDLE_CHECK_MAX); | 105 | delay = min_t(u32, delay << 1, GR_IDLE_CHECK_MAX); |
108 | } while (!nvgpu_timeout_expired(&timeout)); | 106 | } while (!nvgpu_timeout_expired(&timeout)); |
109 | 107 | ||