video: tegra: host: adding throughput hint in 3dfs
authorIlan Aelion <iaelion@nvidia.com>
Mon, 16 Jul 2012 23:31:57 +0000 (17:31 -0600)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 6 Aug 2012 06:27:17 +0000 (11:27 +0530)
commit1d5a3141aa2d812452144543fa24eb840f8dda9b
treedaa478083831b798694a263dbbb8fe17f0b8e4e1
parent67d1804e23fe41a5e047aa3a050e06a33c5cd1e6
video: tegra: host: adding throughput hint in 3dfs

adding support for using a throughput hint given by the tegra-gfx misc
device in the 3d scaling code. If throughput hint usage is enabled and
the latest throughput hint is recent enough (less than 1 second old),
the throughput hint is used to control 3d frequency scaling. Otherwise
the existing idle time percentage estimate is used.

Bug 991589

Change-Id: I68893e5ce7ef922b95ce5f5b3664eb8e1fdd4027
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
Reviewed-on: http://git-master/r/116866
Reviewed-by: Lokesh Pathak <lpathak@nvidia.com>
Tested-by: Lokesh Pathak <lpathak@nvidia.com>
drivers/misc/tegra-throughput.c
drivers/video/tegra/host/gr3d/scale3d.c
include/linux/nvhost.h