diff options
| author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2026-09-07 16:41:18 +0300 |
|---|---|---|
| committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2026-09-14 10:53:46 +0200 |
| commit | 5da91c3694b8060b651aab5d95b2e4729c6e2b56 (patch) | |
| tree | b3b824e5cb1a470b32d5ffd535ebe3577fc730db /tools/perf/python/stackcollapse.py | |
| parent | 7049eb52c81645df81b1867e48bda89f11e585b8 (diff) | |
| download | linux-next-5da91c3694b8060b651aab5d95b2e4729c6e2b56.tar.gz linux-next-5da91c3694b8060b651aab5d95b2e4729c6e2b56.zip | |
thunderbolt: stream: Check the Rx ring before task starts sleeping
In interrupt mode when tb_ring_poll_complete() is called it is possible
that a frame was completed right before the ring interrupt was unmasked
in which case there will be no interrupt and the task starts sleeping.
Avoid this and check if there is anything completed prior putting the
task to sleep. The same can happen with poll() so check the ring there
too before reporting that there is nothing to read.
Assisted-by: LLM
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'tools/perf/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
