summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorIlan Aelion <iaelion@nvidia.com>2012-08-07 09:27:45 -0600
committerSimone Willett <swillett@nvidia.com>2012-08-09 18:06:04 -0700
commit7c022b1b9bc18c5f2156c67701a0fe382e024a85 (patch)
tree1d554aae82e2346e3a32dcf24ace2b1bedf4a0ef /drivers
parenta0e0764dd05daec75c9c45b2866a5e6fbe042352 (diff)
misc: tegra-throughput: warn on short frames
issue a warning on flip events less than 1 microsecond apart. Bug 1027664 Bug 1028850 Signed-off-by: Ilan Aelion <iaelion@nvidia.com> Reviewed-on: http://git-master/r/121810 (cherry picked from commit 6c0e907b437765fb9f7093599911b71a836d49a6) Change-Id: Ie15256e35475d345b2ebe6ddb637ccc181fcb61e Reviewed-on: http://git-master/r/122326 Reviewed-by: Donghan Ryu <dryu@nvidia.com> Tested-by: Donghan Ryu <dryu@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers')
-rw-r--r--drivers/misc/tegra-throughput.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/misc/tegra-throughput.c b/drivers/misc/tegra-throughput.c
index c90a6a00a1a0..bff53235a74c 100644
--- a/drivers/misc/tegra-throughput.c
+++ b/drivers/misc/tegra-throughput.c
@@ -57,8 +57,11 @@ static int throughput_flip_notifier(struct notifier_block *nb,
else
last_frame_time = (unsigned short) timediff;
- if (last_frame_time == 0)
+ if (last_frame_time == 0) {
+ pr_warn("%s: notifications %lld nsec apart\n",
+ __func__, now.tv64 - last_flip.tv64);
return NOTIFY_DONE;
+ }
throughput_hint =
((int) target_frame_time * 100)/last_frame_time;