summaryrefslogtreecommitdiff
path: root/drivers/pps/clients
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2024-09-30 22:13:06 +0200
committerJakub Kicinski <kuba@kernel.org>2024-10-04 09:25:15 -0700
commitcf54ae6b59203bea4f4c749043fa57a58d279e38 (patch)
treea7ca5e3d390882c4fc771e8acd0a8878ff8b9747 /drivers/pps/clients
parent6cd695706f8bb3d06a4dda1f7d673dbfcca45784 (diff)
downloadlinux-cf54ae6b59203bea4f4c749043fa57a58d279e38.tar.gz
linux-cf54ae6b59203bea4f4c749043fa57a58d279e38.tar.bz2
linux-cf54ae6b59203bea4f4c749043fa57a58d279e38.zip
qed: allow the callee of qed_mcp_nvm_read() to sleep
qed_mcp_nvm_read has a loop where it calls qed_mcp_nvm_rd_cmd with the argument b_can_sleep=false. And it sleeps once every 0x1000 bytes read. Simplify this by letting qed_mcp_nvm_rd_cmd itself sleep (b_can_sleep=true). It will have slept at least once when successful (in the "Wait for the MFW response" loop). So the extra sleep once every 0x1000 bytes becomes superfluous. Delete it. On my test system with voluntary preemption, this lowers the latency caused by 'ethtool -d' from 53 ms to 10 ms. Signed-off-by: Michal Schmidt <mschmidt@redhat.com> Link: https://patch.msgid.link/20240930201307.330692-4-mschmidt@redhat.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/pps/clients')
0 files changed, 0 insertions, 0 deletions