Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4d65cc1 authored by Naresh Munagala's avatar Naresh Munagala
Browse files

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: default avatarNaresh Munagala <nareshm@codeaurora.org>
parent 20b1a290
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;