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/acr_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/acr_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/acr_gm20b.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/acr_gm20b.c b/drivers/gpu/nvgpu/gm20b/acr_gm20b.c index 386b266d..c593dd7c 100644 --- a/drivers/gpu/nvgpu/gm20b/acr_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/acr_gm20b.c | |||
@@ -11,12 +11,8 @@ | |||
11 | * more details. | 11 | * more details. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <linux/delay.h> /* for mdelay */ | ||
15 | #include <linux/firmware.h> | 14 | #include <linux/firmware.h> |
16 | #include <linux/module.h> | ||
17 | #include <linux/debugfs.h> | 15 | #include <linux/debugfs.h> |
18 | #include <linux/dma-mapping.h> | ||
19 | #include <linux/io.h> | ||
20 | 16 | ||
21 | #include <linux/platform/tegra/mc.h> | 17 | #include <linux/platform/tegra/mc.h> |
22 | 18 | ||
@@ -1501,7 +1497,7 @@ static int pmu_wait_for_halt(struct gk20a *g, unsigned int timeout_ms) | |||
1501 | ret = 0; | 1497 | ret = 0; |
1502 | break; | 1498 | break; |
1503 | } | 1499 | } |
1504 | udelay(1); | 1500 | nvgpu_udelay(1); |
1505 | } while (!nvgpu_timeout_expired(&timeout)); | 1501 | } while (!nvgpu_timeout_expired(&timeout)); |
1506 | 1502 | ||
1507 | if (ret) { | 1503 | if (ret) { |
@@ -1543,7 +1539,7 @@ static int clear_halt_interrupt_status(struct gk20a *g, unsigned int timeout_ms) | |||
1543 | /*halt irq is clear*/ | 1539 | /*halt irq is clear*/ |
1544 | return 0; | 1540 | return 0; |
1545 | 1541 | ||
1546 | udelay(1); | 1542 | nvgpu_udelay(1); |
1547 | } while (!nvgpu_timeout_expired(&timeout)); | 1543 | } while (!nvgpu_timeout_expired(&timeout)); |
1548 | 1544 | ||
1549 | return -ETIMEDOUT; | 1545 | return -ETIMEDOUT; |