summaryrefslogtreecommitdiffstats
path: root/drivers/fpga/dfl-fme-mgr.c
diff options
context:
space:
mode:
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>2019-06-27 15:51:47 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-03 17:45:57 +0200
commitf505e91ef511a20b2bc3d0eaca41faecdb715027 (patch)
tree7610e38b15129e8017dbf60dbd769909da4e0027 /drivers/fpga/dfl-fme-mgr.c
parentbbbc08a154a1750371f8347a5353819551d11abb (diff)
downloadlinux-f505e91ef511a20b2bc3d0eaca41faecdb715027.tar.bz2
intel_th: msu: Start read iterator from a non-empty window
In multi-window mode, the read iterator is supposed to start from the window with the oldest data, which is, chronologically, the next window after the one with the newest data. This, however, fails to take into account the potentially empty windows, so in short trace sessions it's possible to have a lot of zeroes read from the character device first. Fix this by skipping over the empty windows in initialization of the read iterator. Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20190627125152.54905-5-alexander.shishkin@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/fpga/dfl-fme-mgr.c')
0 files changed, 0 insertions, 0 deletions