From 3dabdf3e6d703ffdb4549ab54cf5bca34460706b Mon Sep 17 00:00:00 2001 From: Sourab Gupta Date: Sun, 29 Apr 2018 14:37:32 +0530 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1704885 Reviewed-by: svc-mobile-coverity Reviewed-by: Alex Waterman GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/clk_arb.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'drivers/gpu/nvgpu/include') 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; #define _WRAPGTEQ(a, b) ((a-b) > 0) +/* + * NVGPU_POLL* defines equivalent to the POLL* linux defines + */ +#define NVGPU_POLLIN (1 << 0) +#define NVGPU_POLLPRI (1 << 1) +#define NVGPU_POLLOUT (1 << 2) +#define NVGPU_POLLRDNORM (1 << 3) +#define NVGPU_POLLHUP (1 << 4) + + struct nvgpu_clk_notification { u32 notification; u64 timestamp; -- cgit v1.2.2