Allowed UHD to boost the thread's scheduling priority

Resolves: rhbz#781540
This commit is contained in:
Jaroslav Škarvada 2012-02-10 11:14:18 +01:00
parent 08f4c58631
commit 907efa0cb6
2 changed files with 14 additions and 1 deletions

5
uhd-limits.conf Normal file
View File

@ -0,0 +1,5 @@
# Required for better USRP performance, see:
# http://files.ettus.com/uhd_docs/manual/html/general.html#threading-notes
# http://bugzilla.redhat.com/show_bug.cgi?id=781540
@usrp - rtprio 99

View File

@ -9,7 +9,7 @@
Name: uhd
URL: http://code.ettus.com/redmine/ettus/projects/uhd/wiki
Version: 3.3.1
Release: 2%{?dist}
Release: 3%{?dist}
License: GPLv3+
BuildRequires: cmake
BuildRequires: boost-devel libusb1-devel python-cheetah
@ -19,6 +19,7 @@ Requires: tkinter
Group: Applications/Engineering
Summary: Universal Hardware Driver for Ettus Research products
Source0: %{name}-%{version}.tar.gz
Source1: %{name}-limits.conf
%description
The UHD is the universal hardware driver for Ettus Research products.
@ -59,6 +60,8 @@ popd
mkdir _tmpdoc
mv %{buildroot}%{_docdir}/%{name}/{AUTHORS.txt,LICENSE.txt,README.txt} _tmpdoc
install -m 644 -D %{SOURCE1} %{buildroot}%{_sysconfdir}/security/limits.d/99-usrp.conf
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
@ -87,6 +90,7 @@ getent group usrp >/dev/null || groupadd -r usrp >/dev/null
%{_bindir}/uhd_find_devices
%{_bindir}/uhd_usrp_probe
%config(noreplace) %{_sysconfdir}/udev/rules.d/10-usrp-uhd.rules
%config(noreplace) %{_sysconfdir}/security/limits.d/*.conf
%{_libdir}/lib*.so.*
%{_libexecdir}/uhd
@ -99,6 +103,10 @@ getent group usrp >/dev/null || groupadd -r usrp >/dev/null
%doc %{_docdir}/%{name}/*
%changelog
* Fri Feb 10 2012 Jaroslav Škarvada <jskarvad@redhat.com> - 3.3.1-3
- Allowed UHD to boost the thread's scheduling priority
Resolves: rhbz#781540
* Wed Jan 11 2012 Jaroslav Škarvada <jskarvad@redhat.com> - 3.3.1-2
- Minor tweaks to %%pre scriptlet
- Fixed udev rules