summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/bt8xx/bttvp.h
diff options
context:
space:
mode:
authorAbhilash Jindal <klock.android@gmail.com>2015-08-11 17:22:57 +0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-08-16 18:29:59 +0200
commit82fde1a98eb9866347a1d3543fac4ab9a69aeb7d (patch)
tree2ba862a50bb000695983bf779c34b5cdf81d3bae /drivers/media/pci/bt8xx/bttvp.h
parent[media] zoran: Use monotonic time (diff)
downloadlinux-82fde1a98eb9866347a1d3543fac4ab9a69aeb7d.tar.xz
linux-82fde1a98eb9866347a1d3543fac4ab9a69aeb7d.zip
[media] bt8xxx: Use monotonic time
Wall time obtained from do_gettimeofday is susceptible to sudden jumps due to user setting the time or due to NTP. Monotonic time is constantly increasing time better suited for comparing two timestamps. Signed-off-by: Abhilash Jindal <klock.android@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/pci/bt8xx/bttvp.h')
-rw-r--r--drivers/media/pci/bt8xx/bttvp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/bt8xx/bttvp.h b/drivers/media/pci/bt8xx/bttvp.h
index a444cfb35c0b..31bf79d3b0d2 100644
--- a/drivers/media/pci/bt8xx/bttvp.h
+++ b/drivers/media/pci/bt8xx/bttvp.h
@@ -140,7 +140,7 @@ struct bttv_ir {
bool rc5_gpio; /* Is RC5 legacy GPIO enabled? */
u32 last_bit; /* last raw bit seen */
u32 code; /* raw code under construction */
- struct timeval base_time; /* time of last seen code */
+ ktime_t base_time; /* time of last seen code */
bool active; /* building raw code */
};