gpu: nvgpu: add separate unit for cyclestats_snapshot

Add new separate unit common/perf/cyclestats_snapshot.c and add
corresponding header file include/nvgpu/cyclestats_snapshot.h

This unit is h/w independent and simply calls gops.perf.* HALs
exposed by perf unit to do the h/w configurations

Also remove gv11b/css_gr_gv11b.* files as h/w specific sequence
implemented in them is already moved to perf unit

Rename all cyclestats_snapshot HALs in the form nvgpu_css_*()

Jira NVGPU-1103

Change-Id: I303f6becb313ac918e06c495a5fe299947a1f0b1
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1916652
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Deepak Nibade
2018-09-11 18:06:43 +05:30
committed by Abdul Salam
parent 5c52444a42
commit 92c1949392
14 changed files with 100 additions and 411 deletions

View File

@@ -15,7 +15,7 @@
#include <linux/fs.h>
#include "gk20a/css_gr_gk20a.h"
#include <nvgpu/cyclestats_snapshot.h>
struct inode;
struct file;