aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authormichael-west <michael.west@ettus.com>2018-01-09 16:32:11 -0800
committermichael-west <michael.west@ettus.com>2018-01-09 16:32:11 -0800
commit574c6d6fe5decf844a2d458b7b2e5127d90abe65 (patch)
tree0c486c46ba50dfcb7860a1276cbe76ebed37d9a0 /host/lib
parentd95613152da3e7c7f41c71acca65101ed0896893 (diff)
downloaduhd-574c6d6fe5decf844a2d458b7b2e5127d90abe65.tar.gz
uhd-574c6d6fe5decf844a2d458b7b2e5127d90abe65.tar.bz2
uhd-574c6d6fe5decf844a2d458b7b2e5127d90abe65.zip
X300: Reduce CPU usage during TX by restoring timeout when getting flow control packets
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/usrp/device3/device3_io_impl.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/host/lib/usrp/device3/device3_io_impl.cpp b/host/lib/usrp/device3/device3_io_impl.cpp
index 198ee4022..cb40bb565 100644
--- a/host/lib/usrp/device3/device3_io_impl.cpp
+++ b/host/lib/usrp/device3/device3_io_impl.cpp
@@ -352,9 +352,7 @@ static bool tx_flow_ctrl(
}
// Look for a flow control message to update the space available in the buffer.
- // A minimal timeout is used because larger timeouts can cause the thread to be
- // scheduled out for too long at high data rates and result in underruns.
- managed_recv_buffer::sptr buff = async_xport->get_recv_buff(0.000001);
+ managed_recv_buffer::sptr buff = async_xport->get_recv_buff();
if (buff)
{
vrt::if_packet_info_t if_packet_info;