From 69297c0932f858bcbdc4a304823f22a4c8cf3292 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Mon, 10 Apr 2017 14:01:15 -0700 Subject: gpu: nvgpu: gp106: 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: I54db15d9abf578ec334b100635baec214fe22af5 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1460116 Reviewed-by: svccoveritychecker GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman --- drivers/gpu/nvgpu/gp106/xve_gp106.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/gp106/xve_gp106.c') diff --git a/drivers/gpu/nvgpu/gp106/xve_gp106.c b/drivers/gpu/nvgpu/gp106/xve_gp106.c index e4582e15..a5834174 100644 --- a/drivers/gpu/nvgpu/gp106/xve_gp106.c +++ b/drivers/gpu/nvgpu/gp106/xve_gp106.c @@ -14,7 +14,6 @@ * along with this program. If not, see . */ -#include #include #include @@ -92,7 +91,7 @@ static void xve_reset_gpu_gp106(struct gk20a *g) /* * Don't access GPU until _after_ it's back out of reset! */ - msleep(100); + nvgpu_msleep(100); g->ops.xve.xve_writel(g, xve_reset_r(), 0); } @@ -530,7 +529,7 @@ static ssize_t xve_link_speed_write(struct file *filp, return -EINVAL; /* Brief pause... To help rate limit this. */ - msleep(250); + nvgpu_msleep(250); /* * And actually set the speed. Yay. -- cgit v1.2.2