From f403800dce923c8bac982291aee213e1e3afdab0 Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Tue, 26 Jun 2018 17:18:17 +0300 Subject: gpu: nvgpu: move can_railgate to enabled.h The g->can_railgate flag is a global constant-ish property like the rest of the flags behind nvgpu_is_enabled() API, so move it there. Bug 200327089 Change-Id: Id1f2f16ea1975a03fb56f10c2f3c8c705574e341 Signed-off-by: Konsta Holtta Reviewed-on: https://git-master.nvidia.com/r/1764266 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/fifo/submit.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/common/fifo/submit.c') diff --git a/drivers/gpu/nvgpu/common/fifo/submit.c b/drivers/gpu/nvgpu/common/fifo/submit.c index f6a79f80..00763036 100644 --- a/drivers/gpu/nvgpu/common/fifo/submit.c +++ b/drivers/gpu/nvgpu/common/fifo/submit.c @@ -368,7 +368,8 @@ static int nvgpu_submit_channel_gpfifo(struct channel_gk20a *c, need_job_tracking = (flags & NVGPU_SUBMIT_FLAGS_FENCE_WAIT) || (flags & NVGPU_SUBMIT_FLAGS_FENCE_GET) || c->timeout.enabled || - (g->can_railgate && !c->deterministic) || + (nvgpu_is_enabled(g, NVGPU_CAN_RAILGATE) + && !c->deterministic) || !skip_buffer_refcounting; if (need_job_tracking) { @@ -405,7 +406,7 @@ static int nvgpu_submit_channel_gpfifo(struct channel_gk20a *c, need_deferred_cleanup = !c->deterministic || need_sync_framework || c->timeout.enabled || - (g->can_railgate && + (nvgpu_is_enabled(g, NVGPU_CAN_RAILGATE) && !c->deterministic) || !skip_buffer_refcounting; -- cgit v1.2.2