diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-09-28 15:32:18 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-14 17:13:18 -0400 |
commit | 7685f60d9dd6ed062f3037d4e72ea124c103d211 (patch) | |
tree | a30185cde3b5f4fe1f4b657c7708e2fe8e07ee96 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | c7e0c7e7ce045a9bef53f3fa11377ddb23bd79a3 (diff) |
gpu: nvgpu: Abstract rw_semaphore implementation
Abstract implementation of rw_semaphore. In Linux it's implemented
in terms of rw_semaphore. Change deterministic_busy to use the new
implementation.
JIRA NVGPU-259
Change-Id: Ia9c1b6e397581bff7711c5ab6fb76ef6d23cff87
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1570405
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index cf13999a..b6f6a97b 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -58,6 +58,7 @@ struct nvgpu_mem_sgt; | |||
58 | #include <nvgpu/pmu.h> | 58 | #include <nvgpu/pmu.h> |
59 | #include <nvgpu/atomic.h> | 59 | #include <nvgpu/atomic.h> |
60 | #include <nvgpu/barrier.h> | 60 | #include <nvgpu/barrier.h> |
61 | #include <nvgpu/rwsem.h> | ||
61 | 62 | ||
62 | #include "clk_gk20a.h" | 63 | #include "clk_gk20a.h" |
63 | #include "ce2_gk20a.h" | 64 | #include "ce2_gk20a.h" |
@@ -1082,7 +1083,7 @@ struct gk20a { | |||
1082 | * for submits and held for channel lifetime but dropped for an ongoing | 1083 | * for submits and held for channel lifetime but dropped for an ongoing |
1083 | * gk20a_do_idle(). | 1084 | * gk20a_do_idle(). |
1084 | */ | 1085 | */ |
1085 | struct rw_semaphore deterministic_busy; | 1086 | struct nvgpu_rwsem deterministic_busy; |
1086 | 1087 | ||
1087 | struct nvgpu_falcon pmu_flcn; | 1088 | struct nvgpu_falcon pmu_flcn; |
1088 | struct nvgpu_falcon sec2_flcn; | 1089 | struct nvgpu_falcon sec2_flcn; |