video: tegra: host: adding throughput hint in 3dfs
authorIlan Aelion <iaelion@nvidia.com>
Mon, 16 Jul 2012 23:31:57 +0000 (17:31 -0600)
committerLokesh Pathak <lpathak@nvidia.com>
Mon, 30 Jul 2012 16:39:41 +0000 (09:39 -0700)
commit859f9bddcb10fd1fe2890a59181f8388facd1117
treedeab6447181d8414ec6e37408c86c913648583c4
parent97f9f654114aad07c828b05d057a11e03b1af803
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