diff options
Diffstat (limited to 'drivers/gpu/nvgpu/volt/volt_policy.c')
-rw-r--r-- | drivers/gpu/nvgpu/volt/volt_policy.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/drivers/gpu/nvgpu/volt/volt_policy.c b/drivers/gpu/nvgpu/volt/volt_policy.c index e943e771..239b908e 100644 --- a/drivers/gpu/nvgpu/volt/volt_policy.c +++ b/drivers/gpu/nvgpu/volt/volt_policy.c | |||
@@ -11,16 +11,15 @@ | |||
11 | * more details. | 11 | * more details. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <nvgpu/bios.h> | ||
15 | |||
14 | #include "gk20a/gk20a.h" | 16 | #include "gk20a/gk20a.h" |
15 | #include "include/bios.h" | ||
16 | #include "boardobj/boardobjgrp.h" | 17 | #include "boardobj/boardobjgrp.h" |
17 | #include "boardobj/boardobjgrp_e32.h" | 18 | #include "boardobj/boardobjgrp_e32.h" |
18 | #include "gm206/bios_gm206.h" | 19 | #include "gm206/bios_gm206.h" |
19 | #include "ctrl/ctrlvolt.h" | 20 | #include "ctrl/ctrlvolt.h" |
20 | #include "gk20a/pmu_gk20a.h" | 21 | #include "gk20a/pmu_gk20a.h" |
21 | 22 | ||
22 | #include <nvgpu/pmuif/nvgpu_gpmu_cmdif.h> | ||
23 | #include "include/bios.h" | ||
24 | #include "volt.h" | 23 | #include "volt.h" |
25 | 24 | ||
26 | static u32 volt_policy_pmu_data_init_super(struct gk20a *g, | 25 | static u32 volt_policy_pmu_data_init_super(struct gk20a *g, |
@@ -170,15 +169,10 @@ static u32 volt_get_volt_policy_table(struct gk20a *g, | |||
170 | struct voltage_policy_split_rail split_rail; | 169 | struct voltage_policy_split_rail split_rail; |
171 | } policy_type_data; | 170 | } policy_type_data; |
172 | 171 | ||
173 | if (g->ops.bios.get_perf_table_ptrs) { | 172 | voltage_policy_table_ptr = |
174 | voltage_policy_table_ptr = | 173 | (u8 *)nvgpu_bios_get_perf_table_ptrs(g, |
175 | (u8 *)g->ops.bios.get_perf_table_ptrs(g, | 174 | g->bios.perf_token, VOLTAGE_POLICY_TABLE); |
176 | g->bios.perf_token, VOLTAGE_POLICY_TABLE); | 175 | if (voltage_policy_table_ptr == NULL) { |
177 | if (voltage_policy_table_ptr == NULL) { | ||
178 | status = -EINVAL; | ||
179 | goto done; | ||
180 | } | ||
181 | } else { | ||
182 | status = -EINVAL; | 176 | status = -EINVAL; |
183 | goto done; | 177 | goto done; |
184 | } | 178 | } |