diff options
author | Sourab Gupta <sourabg@nvidia.com> | 2018-04-29 05:07:32 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-07 07:42:22 -0400 |
commit | 3dabdf3e6d703ffdb4549ab54cf5bca34460706b (patch) | |
tree | a2dc77308351e7e149ffa95a0e53f4fcc393ca4f /drivers/gpu/nvgpu/include | |
parent | 0ad40e83dbcf0f3f6e936f573c8e7878803ab37f (diff) |
gpu: nvgpu: add conversion function for poll masks
In order to enable the movement of clk arbitrator to common
code, we need to remove the linux specific POLL* defines
and instead use NVGPU defines. Add a conversion function
for the same.
Also remove debugfs include, while at it.
Jira VQRM-3741
Change-Id: I3c367625f9fa5fb8480d01bdaf6233df8cc2c722
Signed-off-by: Sourab Gupta <sourabg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1704885
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/clk_arb.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/clk_arb.h b/drivers/gpu/nvgpu/include/nvgpu/clk_arb.h index 45561e31..a5f8a7d5 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/clk_arb.h +++ b/drivers/gpu/nvgpu/include/nvgpu/clk_arb.h | |||
@@ -93,6 +93,16 @@ struct nvgpu_clk_session; | |||
93 | 93 | ||
94 | #define _WRAPGTEQ(a, b) ((a-b) > 0) | 94 | #define _WRAPGTEQ(a, b) ((a-b) > 0) |
95 | 95 | ||
96 | /* | ||
97 | * NVGPU_POLL* defines equivalent to the POLL* linux defines | ||
98 | */ | ||
99 | #define NVGPU_POLLIN (1 << 0) | ||
100 | #define NVGPU_POLLPRI (1 << 1) | ||
101 | #define NVGPU_POLLOUT (1 << 2) | ||
102 | #define NVGPU_POLLRDNORM (1 << 3) | ||
103 | #define NVGPU_POLLHUP (1 << 4) | ||
104 | |||
105 | |||
96 | struct nvgpu_clk_notification { | 106 | struct nvgpu_clk_notification { |
97 | u32 notification; | 107 | u32 notification; |
98 | u64 timestamp; | 108 | u64 timestamp; |