OSDN Git Service

Recompute the boot to realtime delta at iio ts channel read time
authorPatrick Porlan <patrick.porlan@intel.com>
Mon, 24 Nov 2014 12:59:14 +0000 (13:59 +0100)
committerPatrick Porlan <patrick.porlan@intel.com>
Mon, 24 Nov 2014 12:59:14 +0000 (13:59 +0100)
commit00f369dc84dece4dfa805d2ef86011a45b7459da
tree1d325610ea0147c131b527c1b0e9a7f437de89c5
parent2fffc09f2f3c24c8c2cd81fc571da90e76c2fd7f
Recompute the boot to realtime delta at iio ts channel read time

The RTC can be moved backward or forward at any time... err on
the side of safety, even if there are still potential issues with
this implementation (delay between kernel calls, possibility that
we get scheduled out, or that the clock is adjusted after the iio
buffer was stored...).

Change-Id: If1a517e8e2273ef479bd6095975df26d4aa4d2cd
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
control.c