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>
This commit is contained in:
Naresh Munagala 2016-05-18 17:11:09 +05:30 committed by Gerrit - the friendly Code Review server
parent a3851309db
commit 08f9cd2ae7

View file

@ -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;