summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorIlan Aelion <iaelion@nvidia.com>2012-07-16 17:31:57 -0600
committerLokesh Pathak <lpathak@nvidia.com>2012-07-30 09:39:41 -0700
commit859f9bddcb10fd1fe2890a59181f8388facd1117 (patch)
treedeab6447181d8414ec6e37408c86c913648583c4 /drivers/misc
parent97f9f654114aad07c828b05d057a11e03b1af803 (diff)
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>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/tegra-throughput.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/tegra-throughput.c b/drivers/misc/tegra-throughput.c
index c909a81d0882..b2375d2913bf 100644
--- a/drivers/misc/tegra-throughput.c
+++ b/drivers/misc/tegra-throughput.c
@@ -25,6 +25,7 @@
#include <linux/init.h>
#include <linux/spinlock.h>
#include <linux/throughput_ioctl.h>
+#include <linux/nvhost.h>
#include <mach/dc.h>
#define DEFAULT_SYNC_RATE 60000 /* 60 Hz */
@@ -60,6 +61,7 @@ static int throughput_flip_notifier(struct notifier_block *nb,
((int) target_frame_time * 100)/last_frame_time;
/* notify throughput hint clients here */
+ nvhost_scale3d_set_throughput_hint(throughput_hint);
}
last_flip = now;
}