rpms/bluez-utils/devel bluez-utils-2.25-poll-timeout.patch, NONE, 1.1 bluez-utils.spec, 1.38, 1.39
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Thu Mar 23 18:36:19 UTC 2006
Author: pjones
Update of /cvs/dist/rpms/bluez-utils/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv23468
Modified Files:
bluez-utils.spec
Added Files:
bluez-utils-2.25-poll-timeout.patch
Log Message:
- fix hidd event poll timeout, so we don't get ~20 context switches per second
when nothing is happening
bluez-utils-2.25-poll-timeout.patch:
main.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE bluez-utils-2.25-poll-timeout.patch ---
--- bluez-utils-2.25/hidd/main.c.timeout 2006-03-23 13:24:21.000000000 -0500
+++ bluez-utils-2.25/hidd/main.c 2006-03-23 13:24:26.000000000 -0500
@@ -335,7 +335,7 @@
p[0].revents = 0;
p[1].revents = 0;
- err = poll(p, 2, 100);
+ err = poll(p, 2, -1);
if (err <= 0)
continue;
Index: bluez-utils.spec
===================================================================
RCS file: /cvs/dist/rpms/bluez-utils/devel/bluez-utils.spec,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- bluez-utils.spec 14 Mar 2006 23:44:13 -0000 1.38
+++ bluez-utils.spec 23 Mar 2006 18:36:17 -0000 1.39
@@ -13,7 +13,8 @@
Source7: dund.conf
Source8: hidd.conf
Source9: bluetooth.conf
-Patch1: bluez-utils-2.3-conf.patch
+Patch0: bluez-utils-2.3-conf.patch
+Patch1: bluez-utils-2.25-poll-timeout.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
URL: http://www.bluez.org/
BuildRequires: bluez-libs-devel >= %{version}
@@ -51,6 +52,7 @@
rm -rf $RPM_BUILD_ROOT
%setup -q
+%patch0 -p1
%patch1 -p1
%build
@@ -111,6 +113,10 @@
%{_libdir}/cups/backend/bluetooth
%changelog
+* Thu Mar 23 2006 Peter Jones <pjones at redhat.com> - 2.25-5
+- Don't poll every 200ms when nothing happens unless there's poll event
+ in hidd.
+
* Wed Mar 14 2006 David Woodhouse <dwmw2 at redhat.com> - 2.25-4
- Require bluez-pin, since we're configured to use it by default
More information about the fedora-cvs-commits
mailing list