summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106/sec2_gp106.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-04-10 17:01:15 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-04-13 16:44:41 -0400
commit69297c0932f858bcbdc4a304823f22a4c8cf3292 (patch)
treeda49b2fb3ae2ec77c2089466e57eb8fdf3f05cae /drivers/gpu/nvgpu/gp106/sec2_gp106.c
parenta32ec94eb49a5ee9b6fa7479da3ed1e39ea7406d (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/sec2_gp106.c')
-rw-r--r--drivers/gpu/nvgpu/gp106/sec2_gp106.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gp106/sec2_gp106.c b/drivers/gpu/nvgpu/gp106/sec2_gp106.c
index cc1e91f6..078a1436 100644
--- a/drivers/gpu/nvgpu/gp106/sec2_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/sec2_gp106.c
@@ -11,8 +11,6 @@
11 * more details. 11 * more details.
12 */ 12 */
13 13
14#include <linux/delay.h> /* for udelay */
15
16#include "gk20a/gk20a.h" 14#include "gk20a/gk20a.h"
17#include "gk20a/pmu_gk20a.h" 15#include "gk20a/pmu_gk20a.h"
18 16
@@ -46,7 +44,7 @@ int sec2_clear_halt_interrupt_status(struct gk20a *g, unsigned int timeout)
46 psec_falcon_irqstat_halt_true_f()) 44 psec_falcon_irqstat_halt_true_f())
47 /*halt irq is clear*/ 45 /*halt irq is clear*/
48 break; 46 break;
49 udelay(1); 47 nvgpu_udelay(1);
50 } while (!nvgpu_timeout_expired(&to)); 48 } while (!nvgpu_timeout_expired(&to));
51 49
52 if (nvgpu_timeout_peek_expired(&to)) 50 if (nvgpu_timeout_peek_expired(&to))
@@ -68,7 +66,7 @@ int sec2_wait_for_halt(struct gk20a *g, unsigned int timeout)
68 completion = 0; 66 completion = 0;
69 break; 67 break;
70 } 68 }
71 udelay(1); 69 nvgpu_udelay(1);
72 } while (!nvgpu_timeout_expired(&to)); 70 } while (!nvgpu_timeout_expired(&to));
73 71
74 if (completion) { 72 if (completion) {