From b21da0343271770523f233195aa04c785b7f651f Mon Sep 17 00:00:00 2001 From: Philip Elcan Date: Thu, 12 Sep 2019 14:19:48 -0400 Subject: [PATCH] gpu: nvgpu: clk: remove unused HAL The clk HAL disable_slowboot() is not set for any platform and is thus unused, so remove it JIRA NVGPU-3980 Change-Id: Idb61ae35e85d35e852f18d22c076a1e16e723e88 Signed-off-by: Philip Elcan Reviewed-on: https://git-master.nvidia.com/r/2196421 Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-misra Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Vinod Gopalakrishnakurup Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/init/nvgpu_init.c | 4 ---- drivers/gpu/nvgpu/include/nvgpu/gk20a.h | 1 - userspace/units/init/nvgpu-init.c | 2 -- 3 files changed, 7 deletions(-) diff --git a/drivers/gpu/nvgpu/common/init/nvgpu_init.c b/drivers/gpu/nvgpu/common/init/nvgpu_init.c index b7ff62a2f..6366dc505 100644 --- a/drivers/gpu/nvgpu/common/init/nvgpu_init.c +++ b/drivers/gpu/nvgpu/common/init/nvgpu_init.c @@ -346,10 +346,6 @@ int nvgpu_finalize_poweron(struct gk20a *g) #endif g->ops.bus.init_hw(g); - if (g->ops.clk.disable_slowboot != NULL) { - g->ops.clk.disable_slowboot(g); - } - g->ops.priv_ring.enable_priv_ring(g); /* TBD: move this after graphics init in which blcg/slcg is enabled. diff --git a/drivers/gpu/nvgpu/include/nvgpu/gk20a.h b/drivers/gpu/nvgpu/include/nvgpu/gk20a.h index f29fea337..5c287c141 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/gk20a.h +++ b/drivers/gpu/nvgpu/include/nvgpu/gk20a.h @@ -1279,7 +1279,6 @@ struct gpu_ops { } pmu; struct { int (*init_debugfs)(struct gk20a *g); - void (*disable_slowboot)(struct gk20a *g); int (*init_clk_support)(struct gk20a *g); void (*suspend_clk_support)(struct gk20a *g); u32 (*get_crystal_clk_hz)(struct gk20a *g); diff --git a/userspace/units/init/nvgpu-init.c b/userspace/units/init/nvgpu-init.c index 0e6831e2e..c5ce4585c 100644 --- a/userspace/units/init/nvgpu-init.c +++ b/userspace/units/init/nvgpu-init.c @@ -376,7 +376,6 @@ static void set_poweron_funcs_success(struct gk20a *g) /* these don't even return anything */ g->ops.bus.init_hw = no_return; - g->ops.clk.disable_slowboot = no_return; g->ops.priv_ring.enable_priv_ring = no_return; g->ops.mc.intr_enable = no_return; g->ops.channel.resume_all_serviceable_ch = no_return; @@ -507,7 +506,6 @@ int test_poweron_branches(struct unit_module *m, struct gk20a *g, void *args) set_poweron_funcs_success(g); /* hit all the NULL pointer checks */ - g->ops.clk.disable_slowboot = NULL; g->ops.clk.init_clk_support = NULL; g->ops.fb.init_fbpa = NULL; g->ops.fb.mem_unlock = NULL;