misc: tegra-throughput: avoid flooding warning msg
authorDavid Pu <dpu@nvidia.com>
Thu, 6 Jun 2013 07:52:58 +0000 (15:52 +0800)
committerRiham Haidar <rhaidar@nvidia.com>
Sun, 9 Jun 2013 04:17:23 +0000 (21:17 -0700)
commitd5cf072d6cad8b2bdbbe9ea71e6e60a635c59065
tree3601a34fa0cc1335a0836cc58285bc86116f6ee7
parent34cb7ac8c645d88d9a51b5605e97a97518c92cc5
misc: tegra-throughput: avoid flooding warning msg

timediff value will overflow easily after put dc off
for a while since the data type of long is just 4bytes
for 32bit cpu. after timediff overflowed, uart will spew
out warning messages for a long time before the timediff
becomes > 0.
fixed this issue by resetting the last_flip time as soon
as overflow is occurred.

Bug 1302148
Bug 1293211
Bug 1283757
Bug 1282005

Change-Id: I527ddc1ed7850be3938f2341d7d1623ea4f22e76
Signed-off-by: David Pu <dpu@nvidia.com>
Reviewed-on: http://git-master/r/236192
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
drivers/misc/tegra-throughput.c