summaryrefslogtreecommitdiff
path: root/drivers/misc/tegra-throughput.c
diff options
context:
space:
mode:
authorIlan Aelion <iaelion@nvidia.com>2012-08-07 09:27:45 -0600
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 12:31:27 -0700
commit10d4897e1c82d4f46f5cbacd812dc059f9da4d5e (patch)
tree66bf5465400f63b70c0a2652bd99456afe69a064 /drivers/misc/tegra-throughput.c
parent610541b9404ca42ea429d422a00f6ab49b9f13d6 (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 Rebase-Id: Rb35f636f1b692b3d324038e478d06c03f72e68e6
Diffstat (limited to 'drivers/misc/tegra-throughput.c')
-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 47dc682795ab..501cb9267ef4 100644
--- a/drivers/misc/tegra-throughput.c
+++ b/drivers/misc/tegra-throughput.c
@@ -58,8 +58,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;