From 7b654278067dd8c253232950fc1909f5f59572ef Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Mon, 21 Aug 2017 09:30:11 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1542836 Reviewed-by: svccoveritychecker Reviewed-by: svc-mobile-coverity Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sourab Gupta GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/gm206/bios_gm206.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gm206') 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 @@ #include #include #include +#include #include "gk20a/gk20a.h" #include "gk20a/platform_gk20a.h" @@ -254,7 +255,7 @@ int gm206_bios_init(struct gk20a *g) return err; } - if (platform->run_preos) { + if (nvgpu_is_enabled(g, NVGPU_PMU_RUN_PREOS)) { err = gm206_bios_preos(g); if (err) { nvgpu_err(g, "pre-os failed"); -- cgit v1.2.2