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/clk_gp106.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'drivers/gpu/nvgpu/gp106/clk_gp106.c') diff --git a/drivers/gpu/nvgpu/gp106/clk_gp106.c b/drivers/gpu/nvgpu/gp106/clk_gp106.c index 262fd63c..fb9406e5 100644 --- a/drivers/gpu/nvgpu/gp106/clk_gp106.c +++ b/drivers/gpu/nvgpu/gp106/clk_gp106.c @@ -16,11 +16,8 @@ * along with this program. If not, see . */ -#include /* for mdelay */ -#include #include #include -#include #include @@ -188,7 +185,7 @@ static u32 gp106_get_rate_cntr(struct gk20a *g, struct namemap_cfg *c) { /* Wait for reset to happen */ retries = CLK_DEFAULT_CNTRL_SETTLE_RETRIES; do { - udelay(CLK_DEFAULT_CNTRL_SETTLE_USECS); + nvgpu_udelay(CLK_DEFAULT_CNTRL_SETTLE_USECS); } while ((--retries) && (cntr = gk20a_readl(g, c->cntr.reg_cntr_addr))); if (!retries) { @@ -206,7 +203,7 @@ static u32 gp106_get_rate_cntr(struct gk20a *g, struct namemap_cfg *c) { c->cntr.reg_ctrl_idx); gk20a_readl(g, c->cntr.reg_ctrl_addr); - udelay(XTAL_CNTR_DELAY); + nvgpu_udelay(XTAL_CNTR_DELAY); cntr = XTAL_SCALE_TO_KHZ * gk20a_readl(g, c->cntr.reg_cntr_addr); -- cgit v1.2.2