diff options
Diffstat (limited to 'drivers/gpu/nvgpu/pstate')
-rw-r--r-- | drivers/gpu/nvgpu/pstate/pstate.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/pstate/pstate.c b/drivers/gpu/nvgpu/pstate/pstate.c index 82e809bb..feb8cca8 100644 --- a/drivers/gpu/nvgpu/pstate/pstate.c +++ b/drivers/gpu/nvgpu/pstate/pstate.c | |||
@@ -13,11 +13,12 @@ | |||
13 | * more details. | 13 | * more details. |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include <nvgpu/bios.h> | ||
17 | |||
16 | #include "gk20a/gk20a.h" | 18 | #include "gk20a/gk20a.h" |
17 | #include "clk/clk.h" | 19 | #include "clk/clk.h" |
18 | #include "perf/perf.h" | 20 | #include "perf/perf.h" |
19 | #include "pmgr/pmgr.h" | 21 | #include "pmgr/pmgr.h" |
20 | #include "include/bios.h" | ||
21 | #include "pstate/pstate.h" | 22 | #include "pstate/pstate.h" |
22 | #include "therm/thrm.h" | 23 | #include "therm/thrm.h" |
23 | 24 | ||
@@ -342,11 +343,9 @@ static int pstate_sw_setup(struct gk20a *g) | |||
342 | goto done; | 343 | goto done; |
343 | } | 344 | } |
344 | 345 | ||
345 | if (g->ops.bios.get_perf_table_ptrs) { | 346 | hdr = (struct vbios_pstate_header_5x *) |
346 | hdr = (struct vbios_pstate_header_5x *) | 347 | nvgpu_bios_get_perf_table_ptrs(g, |
347 | g->ops.bios.get_perf_table_ptrs(g, | 348 | g->bios.perf_token, PERFORMANCE_TABLE); |
348 | g->bios.perf_token, PERFORMANCE_TABLE); | ||
349 | } | ||
350 | 349 | ||
351 | if (!hdr) { | 350 | if (!hdr) { |
352 | gk20a_err(dev_from_gk20a(g), | 351 | gk20a_err(dev_from_gk20a(g), |