From 947a23606351f1c81072cedcd4ab686d34042912 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Mon, 10 Apr 2017 13:47:37 -0700 Subject: 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 Reviewed-on: http://git-master/r/1460114 Reviewed-by: svccoveritychecker GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman --- drivers/gpu/nvgpu/gm20b/acr_gm20b.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'drivers/gpu/nvgpu/gm20b/acr_gm20b.c') 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 @@ * more details. */ -#include /* for mdelay */ #include -#include #include -#include -#include #include @@ -1501,7 +1497,7 @@ static int pmu_wait_for_halt(struct gk20a *g, unsigned int timeout_ms) ret = 0; break; } - udelay(1); + nvgpu_udelay(1); } while (!nvgpu_timeout_expired(&timeout)); if (ret) { @@ -1543,7 +1539,7 @@ static int clear_halt_interrupt_status(struct gk20a *g, unsigned int timeout_ms) /*halt irq is clear*/ return 0; - udelay(1); + nvgpu_udelay(1); } while (!nvgpu_timeout_expired(&timeout)); return -ETIMEDOUT; -- cgit v1.2.2