summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/stv0299.c
diff options
context:
space:
mode:
authorAbhilash Jindal <klock.android@gmail.com>2016-01-31 03:47:31 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-02-01 13:35:29 -0200
commit6b3f99989eb73e5250bba9dfeaa852939acfbf70 (patch)
tree40c75abc134fa5d7660a8096859e24547b2b5727 /drivers/media/dvb-frontends/stv0299.c
parent3801bc7d1b8dd70d47a92e58d6fb5653c10b7c95 (diff)
downloadop-kernel-dev-6b3f99989eb73e5250bba9dfeaa852939acfbf70.zip
op-kernel-dev-6b3f99989eb73e5250bba9dfeaa852939acfbf70.tar.gz
[media] dvb-frontend: Use boottime
Wall time obtained from ktime_get_real is susceptible to sudden jumps due to user setting the time or due to NTP. Boot time is constantly increasing time better suited for comparing two timestamps. [mchehab@osg.samsung.com: fix trivial merge conflicts] Signed-off-by: Abhilash Jindal <klock.android@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/stv0299.c')
-rw-r--r--drivers/media/dvb-frontends/stv0299.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb-frontends/stv0299.c b/drivers/media/dvb-frontends/stv0299.c
index a817780..c43f36d 100644
--- a/drivers/media/dvb-frontends/stv0299.c
+++ b/drivers/media/dvb-frontends/stv0299.c
@@ -422,7 +422,7 @@ static int stv0299_send_legacy_dish_cmd (struct dvb_frontend* fe, unsigned long
if (debug_legacy_dish_switch)
printk ("%s switch command: 0x%04lx\n",__func__, cmd);
- nexttime = ktime_get_real();
+ nexttime = ktime_get_boottime();
if (debug_legacy_dish_switch)
tv[0] = nexttime;
stv0299_writeregI (state, 0x0c, reg0x0c | 0x50); /* set LNB to 18V */
@@ -431,7 +431,7 @@ static int stv0299_send_legacy_dish_cmd (struct dvb_frontend* fe, unsigned long
for (i=0; i<9; i++) {
if (debug_legacy_dish_switch)
- tv[i+1] = ktime_get_real();
+ tv[i+1] = ktime_get_boottime();
if((cmd & 0x01) != last) {
/* set voltage to (last ? 13V : 18V) */
stv0299_writeregI (state, 0x0c, reg0x0c | (last ? lv_mask : 0x50));
OpenPOWER on IntegriCloud