From d27d9ff7a89ab1a590a9cc8367af7f3a3ea698a8 Mon Sep 17 00:00:00 2001 From: Antony Clince Alex Date: Mon, 28 May 2018 16:05:58 +0530 Subject: gpu: nvgpu: removed linux includes from CSS HAL - removed inclusion of linux includes. - replaced with nvgpu/*.h's - reformated the function signature of "css_hw_get_pending_snapshot" and "css_hw_get_overflow_status" be global instead of static. - added get_pending_snapshot and get_overflow_status to ops->css. JIRA: VQRM-3699 Change-Id: I177904c263e143b414924c2c28ad6fd3cfd00132 Signed-off-by: Antony Clince Alex Reviewed-on: https://git-master.nvidia.com/r/1732783 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c index 0fc39bf4..764ffe1a 100644 --- a/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/css_gr_gk20a.c @@ -22,9 +22,6 @@ * DEALINGS IN THE SOFTWARE. */ -#include -#include - #include #include #include @@ -61,14 +58,14 @@ #define CSS_MAX_PERFMON_IDS 256 /* reports whether the hw queue overflowed */ -static inline bool css_hw_get_overflow_status(struct gk20a *g) +bool css_hw_get_overflow_status(struct gk20a *g) { const u32 st = perf_pmasys_control_membuf_status_overflowed_f(); return st == (gk20a_readl(g, perf_pmasys_control_r()) & st); } /* returns how many pending snapshot entries are pending */ -static inline u32 css_hw_get_pending_snapshots(struct gk20a *g) +u32 css_hw_get_pending_snapshots(struct gk20a *g) { return gk20a_readl(g, perf_pmasys_mem_bytes_r()) / sizeof(struct gk20a_cs_snapshot_fifo_entry); @@ -245,7 +242,7 @@ static void css_gr_free_shared_data(struct gr_gk20a *gr) } -static struct gk20a_cs_snapshot_client* +struct gk20a_cs_snapshot_client* css_gr_search_client(struct nvgpu_list_node *clients, u32 perfmon) { struct gk20a_cs_snapshot_client *client; -- cgit v1.2.2