summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/clk/clk.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/clk/clk.c')
-rw-r--r--drivers/gpu/nvgpu/clk/clk.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk.c b/drivers/gpu/nvgpu/clk/clk.c
index 49087468..731124f7 100644
--- a/drivers/gpu/nvgpu/clk/clk.c
+++ b/drivers/gpu/nvgpu/clk/clk.c
@@ -869,34 +869,3 @@ u32 clk_domain_get_f_or_v(
869 } 869 }
870 return status; 870 return status;
871} 871}
872
873u32 clk_domain_get_f_points(
874 struct gk20a *g,
875 u32 clkapidomain,
876 u32 *pfpointscount,
877 u16 *pfreqpointsinmhz
878)
879{
880 u32 status = -EINVAL;
881 struct clk_domain *pdomain;
882 u8 i;
883 struct clk_pmupstate *pclk = &g->clk_pmu;
884
885 if (pfpointscount == NULL)
886 return -EINVAL;
887
888 if ((pfreqpointsinmhz == NULL) && (*pfpointscount != 0))
889 return -EINVAL;
890
891 BOARDOBJGRP_FOR_EACH(&(pclk->clk_domainobjs.super.super),
892 struct clk_domain *, pdomain, i) {
893 if (pdomain->api_domain == clkapidomain) {
894 status = pdomain->clkdomainclkgetfpoints(g, pclk,
895 pdomain, pfpointscount,
896 pfreqpointsinmhz,
897 CLK_PROG_VFE_ENTRY_LOGIC);
898 return status;
899 }
900 }
901 return status;
902}