summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/bus_gm20b.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-04-10 16:47:37 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-04-13 16:44:41 -0400
commit947a23606351f1c81072cedcd4ab686d34042912 (patch)
tree79a29254b726d40713d06c6a17d71860c112cc64 /drivers/gpu/nvgpu/gm20b/bus_gm20b.c
parent22426a5452ba943ac48867722fb0927baf66d4ac (diff)
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 <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1460114 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/bus_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/bus_gm20b.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/bus_gm20b.c b/drivers/gpu/nvgpu/gm20b/bus_gm20b.c
index 08761ef7..7b414196 100644
--- a/drivers/gpu/nvgpu/gm20b/bus_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/bus_gm20b.c
@@ -13,8 +13,6 @@
13 * more details. 13 * more details.
14 */ 14 */
15 15
16#include <linux/delay.h>
17
18#include <nvgpu/timers.h> 16#include <nvgpu/timers.h>
19 17
20#include "bus_gm20b.h" 18#include "bus_gm20b.h"
@@ -46,7 +44,7 @@ static int gm20b_bus_bar1_bind(struct gk20a *g, struct nvgpu_mem *bar1_inst)
46 if (!pending && !outstanding) 44 if (!pending && !outstanding)
47 break; 45 break;
48 46
49 udelay(5); 47 nvgpu_udelay(5);
50 } while (!nvgpu_timeout_expired(&timeout)); 48 } while (!nvgpu_timeout_expired(&timeout));
51 49
52 if (nvgpu_timeout_peek_expired(&timeout)) 50 if (nvgpu_timeout_peek_expired(&timeout))