misc: tegra-throughput: prevent division by 0
authorIlan Aelion <iaelion@nvidia.com>
Thu, 2 Aug 2012 17:01:02 +0000 (11:01 -0600)
committerVarun Wadekar <vwadekar@nvidia.com>
Fri, 10 Aug 2012 06:22:54 +0000 (11:22 +0530)
commit1499080ec5feb08aa3d180352f8072dcbc254ace
tree89012b84c36662ea67ddb19f0c9945280fa9d444
parente00336f39ca651fc58e75ecc8b115b38a817f31f
misc: tegra-throughput: prevent division by 0

Prevent division by 0 on subsequent flip notifications at an interval
shorter than 1 micro-second.

Bug 1027664

Change-Id: I6e2f886721216fc2479adc1a24504b707c7ebe45
Signed-off-by: Ilan Aelion <iaelion@nvidia.com>
(cherry picked from commit 92807179cbbd60be67e09ff40bdaab313e3a55fe)
Reviewed-on: http://git-master/r/121142
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Donghan Ryu <dryu@nvidia.com>
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Michael I Gold <gold@nvidia.com>
drivers/misc/tegra-throughput.c