summaryrefslogtreecommitdiff
path: root/drivers/pps/clients
diff options
context:
space:
mode:
authorNaresh Munagala <nareshm@codeaurora.org>2016-05-18 17:11:09 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-04-06 01:48:33 -0700
commit08f9cd2ae7f35a3d7a05dc86aa6cdbf804fab28b (patch)
tree2399c29708a64c7c7cc41bee0a8d240fbf35cb8e /drivers/pps/clients
parenta3851309dbf7e919b27e2ec927ba3f6350347dff (diff)
pps-gpio: Timestamp alignment with boottime
GPS driver which makes use of PPS timestamp expects time with respect to boot time. Existing pps_get_ts function doesn't return time from the boot so replaced this function with get_monotonic_boottime function which returns elapsed time from the boot. Change-Id: I8f656a1c4ef43f6314d4ab295a177125bcc8195e CRs-Fixed: 1012438 Signed-off-by: Naresh Munagala <nareshm@codeaurora.org>
Diffstat (limited to 'drivers/pps/clients')
-rw-r--r--drivers/pps/clients/pps-gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pps/clients/pps-gpio.c b/drivers/pps/clients/pps-gpio.c
index 333ad7d5b45b..da72b0b59c3a 100644
--- a/drivers/pps/clients/pps-gpio.c
+++ b/drivers/pps/clients/pps-gpio.c
@@ -57,7 +57,7 @@ static irqreturn_t pps_gpio_irq_handler(int irq, void *data)
int rising_edge;
/* Get the time stamp first */
- pps_get_ts(&ts);
+ get_monotonic_boottime(&ts.ts_real);
info = data;