]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb1dde9dfe24254418b3e7193a1aed12ce812ec98
tree6639e55ee5fb65286bde48fdbfa6f4ab16890077
parent57fcf0f93ecbd681d2f3c68758ffff7653de7bd6
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