diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-08-21 12:30:11 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-22 11:55:06 -0400 |
commit | 7b654278067dd8c253232950fc1909f5f59572ef (patch) | |
tree | 563c677e4593fe983f1eba6fef7e2db6734b0597 /drivers/gpu/nvgpu/gm206 | |
parent | 81868a187fa3b217368206f17b19309846e8e7fb (diff) |
gpu: nvgpu: Use nvgpu flags for run_preos
Accessing run_preos from gk20a_platform causes unnecessary Linux
dependency, so copy the flag to abstract flags.
Change-Id: I4818fb6735201f36e552c1ff45138a44a3d94db1
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1542836
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sourab Gupta <sourabg@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gm206')
-rw-r--r-- | drivers/gpu/nvgpu/gm206/bios_gm206.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm206/bios_gm206.c b/drivers/gpu/nvgpu/gm206/bios_gm206.c index e9473414..381b3840 100644 --- a/drivers/gpu/nvgpu/gm206/bios_gm206.c +++ b/drivers/gpu/nvgpu/gm206/bios_gm206.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <nvgpu/timers.h> | 19 | #include <nvgpu/timers.h> |
20 | #include <nvgpu/firmware.h> | 20 | #include <nvgpu/firmware.h> |
21 | #include <nvgpu/falcon.h> | 21 | #include <nvgpu/falcon.h> |
22 | #include <nvgpu/enabled.h> | ||
22 | 23 | ||
23 | #include "gk20a/gk20a.h" | 24 | #include "gk20a/gk20a.h" |
24 | #include "gk20a/platform_gk20a.h" | 25 | #include "gk20a/platform_gk20a.h" |
@@ -254,7 +255,7 @@ int gm206_bios_init(struct gk20a *g) | |||
254 | return err; | 255 | return err; |
255 | } | 256 | } |
256 | 257 | ||
257 | if (platform->run_preos) { | 258 | if (nvgpu_is_enabled(g, NVGPU_PMU_RUN_PREOS)) { |
258 | err = gm206_bios_preos(g); | 259 | err = gm206_bios_preos(g); |
259 | if (err) { | 260 | if (err) { |
260 | nvgpu_err(g, "pre-os failed"); | 261 | nvgpu_err(g, "pre-os failed"); |