From 08f9cd2ae7f35a3d7a05dc86aa6cdbf804fab28b Mon Sep 17 00:00:00 2001 From: Naresh Munagala Date: Wed, 18 May 2016 17:11:09 +0530 Subject: [PATCH] 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 --- drivers/pps/clients/pps-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;