diff options
author | Michal Schmidt <[email protected]> | 2024-09-30 22:13:07 +0200 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-10-04 09:25:15 -0700 |
commit | 2efeaf1d2a13f4b7419d60cd145ac84a3c151214 (patch) | |
tree | 4dee535f7d2fb7e15519285e11a0326a98337866 /tools/perf/scripts/python | |
parent | cf54ae6b59203bea4f4c749043fa57a58d279e38 (diff) |
qed: put cond_resched() in qed_dmae_operation_wait()
It is OK to sleep in qed_dmae_operation_wait, because it is called only
in process context, while holding p_hwfn->dmae_info.mutex from one of
the qed_dmae_{host,grc}2{host,grc} functions.
The udelay(DMAE_MIN_WAIT_TIME=2) in the function is too short to replace
with usleep_range, but at least it's a suitable point for checking if we
should give up the CPU with cond_resched().
This lowers the latency caused by 'ethtool -d' from 10 ms to less than
2 ms on my test system with voluntary preemption.
Signed-off-by: Michal Schmidt <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions