]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
gpu: nvgpu: gk20a: Update perfmon init
authorPrashant Malani <pmalani@nvidia.com>
Thu, 2 Jan 2014 20:47:14 +0000 (12:47 -0800)
committerTerje Bergstrom <tbergstrom@nvidia.com>
Fri, 2 May 2014 10:17:21 +0000 (03:17 -0700)
commitb4f78361d26056bdaf1073c8f7315e7979c94c12
tree44496b5bcefd50be03e7d2f5a6e75d9e55d457cb
parentdc1c2b13064c29ad3eea5ce02b272e0a371133e1
gpu: nvgpu: gk20a: Update perfmon init

Make the perfmon sampling configurable, by adding an 'enabled' flag.
This is set according to the CONFIG initially. Modify the perfmon event
handler to not touch clock rates. Add a counter to count the number of
perfmon events.

Also add debugfs entries for the above.

Bug 1410515

Change-Id: Ic8197eef0e46e35af1179a5b06140393541cfd43
Signed-off-by: Prashant Malani <pmalani@nvidia.com>
Reviewed-on: http://git-master/r/351564
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
drivers/gpu/nvgpu/gk20a/pmu_gk20a.c
drivers/gpu/nvgpu/gk20a/pmu_gk20a.h