video: tegra: host: expose power management paramters via sysfs
authorMayuresh Kulkarni <mkulkarni@nvidia.com>
Tue, 12 Jun 2012 12:52:26 +0000 (17:52 +0530)
committerSimone Willett <swillett@nvidia.com>
Tue, 19 Jun 2012 01:44:11 +0000 (18:44 -0700)
commit6cc2ba059bc9760f185834e67d9456af36bf5a9f
tree5a7b473179c57ea9ae493c6969cd000e35ee57e3
parente43dc6b9b19919885908c6f02b6cc5416da06456
video: tegra: host: expose power management paramters via sysfs

this commit exposes following power management parameter through
sysfs:
- clockgate_delay: delay after which module is clock gated after
it goes idle. this read/write attribute & unit is ms.
- powergate_delay: delay after which module is power gated after
it is clock gated. this is read/write attribute & unit is ms.
- refcount: current reference count on the module. this is
read-only attribute.

path is: /sys/devices/host1x/<device-name>/acm/ where
<device-name> = name of device node like gr2d or gr3d etc

Bug 845598

Change-Id: I6011eb90ee85b5fc576320272e657ce31f9e264d
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/108827
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Francis Hart <fhart@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
drivers/video/tegra/host/nvhost_acm.c
include/linux/nvhost.h