]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
video: tegra: host: gk20a: Export raw counters
authorArto Merilainen <amerilainen@nvidia.com>
Thu, 23 Jan 2014 08:33:36 +0000 (10:33 +0200)
committerTerje Bergstrom <tbergstrom@nvidia.com>
Wed, 5 Feb 2014 09:21:16 +0000 (01:21 -0800)
commitba535ed67ac99538d3a4a769b3780277d1fdb61d
treef793241b1b4e78a2d2b25c9e0e5e423a9527ffb4
parentd67e0e4635573dfb96eb1afe77ebfbbe44ee32d6
video: tegra: host: gk20a: Export raw counters

GPU scaling in user space is moving towards using raw counter
readings instead of instantaneous load. This patch exports busy
and idle counters to userspace as sysfs nodes counters and
counters_reset. The first node shows raw counter values and
the second node shows the raw values and resets them.

This patch does not account for possible wrapping issues.

Bug 1444343

Change-Id: I24620a77f5042008ac811ed55cb1b0d1ea3eac37
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/359240
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
drivers/video/tegra/host/gk20a/gk20a_sysfs.c
drivers/video/tegra/host/gk20a/pmu_gk20a.c
drivers/video/tegra/host/gk20a/pmu_gk20a.h