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/acr_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/acr_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/acr_gp106.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gp106/acr_gp106.c b/drivers/gpu/nvgpu/gp106/acr_gp106.c index 26c8ab53..da281077 100644 --- a/drivers/gpu/nvgpu/gp106/acr_gp106.c +++ b/drivers/gpu/nvgpu/gp106/acr_gp106.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 <nvgpu/nvgpu_common.h> | 17 | #include <nvgpu/nvgpu_common.h> |
22 | #include <nvgpu/kmem.h> | 18 | #include <nvgpu/kmem.h> |
@@ -1163,7 +1159,7 @@ static int gp106_bootstrap_hs_flcn(struct gk20a *g) | |||
1163 | /* sec2 reset - to keep it idle */ | 1159 | /* sec2 reset - to keep it idle */ |
1164 | gk20a_writel(g, psec_falcon_engine_r(), | 1160 | gk20a_writel(g, psec_falcon_engine_r(), |
1165 | pwr_falcon_engine_reset_true_f()); | 1161 | pwr_falcon_engine_reset_true_f()); |
1166 | udelay(10); | 1162 | nvgpu_udelay(10); |
1167 | gk20a_writel(g, psec_falcon_engine_r(), | 1163 | gk20a_writel(g, psec_falcon_engine_r(), |
1168 | pwr_falcon_engine_reset_false_f()); | 1164 | pwr_falcon_engine_reset_false_f()); |
1169 | 1165 | ||