diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-04-10 17:01:15 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-13 16:44:41 -0400 |
commit | 69297c0932f858bcbdc4a304823f22a4c8cf3292 (patch) | |
tree | da49b2fb3ae2ec77c2089466e57eb8fdf3f05cae /drivers/gpu/nvgpu/gp106/xve_gp106.c | |
parent | a32ec94eb49a5ee9b6fa7479da3ed1e39ea7406d (diff) |
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 <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1460116
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/xve_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/xve_gp106.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include <linux/delay.h> | ||
18 | #include <linux/debugfs.h> | 17 | #include <linux/debugfs.h> |
19 | #include <linux/uaccess.h> | 18 | #include <linux/uaccess.h> |
20 | 19 | ||
@@ -92,7 +91,7 @@ static void xve_reset_gpu_gp106(struct gk20a *g) | |||
92 | /* | 91 | /* |
93 | * Don't access GPU until _after_ it's back out of reset! | 92 | * Don't access GPU until _after_ it's back out of reset! |
94 | */ | 93 | */ |
95 | msleep(100); | 94 | nvgpu_msleep(100); |
96 | g->ops.xve.xve_writel(g, xve_reset_r(), 0); | 95 | g->ops.xve.xve_writel(g, xve_reset_r(), 0); |
97 | } | 96 | } |
98 | 97 | ||
@@ -530,7 +529,7 @@ static ssize_t xve_link_speed_write(struct file *filp, | |||
530 | return -EINVAL; | 529 | return -EINVAL; |
531 | 530 | ||
532 | /* Brief pause... To help rate limit this. */ | 531 | /* Brief pause... To help rate limit this. */ |
533 | msleep(250); | 532 | nvgpu_msleep(250); |
534 | 533 | ||
535 | /* | 534 | /* |
536 | * And actually set the speed. Yay. | 535 | * And actually set the speed. Yay. |