intel_th: Perform time resync on capture start
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Fri, 24 Feb 2017 14:09:40 +0000 (16:09 +0200)
committerAlexander Shishkin <alexander.shishkin@linux.intel.com>
Fri, 25 Aug 2017 15:48:00 +0000 (18:48 +0300)
commita0e7df335afd2a8a8a688251ffee375b58b6517c
tree6639e55ee5fb65286bde48fdbfa6f4ab16890077
parent29e15e83a99cdc13d0d38de558fbea641f8fdda8
intel_th: Perform time resync on capture start

On some devices (TH 2.x devices at the moment), the internal time counter
is initially not synchronized to the global crystal clock, so the time
stamps it produces will not be useful. In this case, the driver needs
to force the time counter resync.

This applies the workaround to relevant devices.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
drivers/hwtracing/intel_th/core.c
drivers/hwtracing/intel_th/gth.c
drivers/hwtracing/intel_th/gth.h
drivers/hwtracing/intel_th/intel_th.h
drivers/hwtracing/intel_th/pci.c