Hello community,
here is the log from the commit of package irqbalance
checked in at Thu Apr 12 23:30:05 CEST 2007.
--------
--- irqbalance/irqbalance.changes 2007-04-03 11:35:34.000000000 +0200
+++ /mounts/work_src_done/STABLE/irqbalance/irqbalance.changes 2007-04-12 18:35:11.008554000 +0200
@@ -1,0 +2,12 @@
+Wed Apr 11 15:00:06 CEST 2007 - bwalle@suse.de
+
+- updated to irqbalance.org 0.55
+ o rewrite from static arrays to dynamic lists using glib
+ o added IRQBALANCE_ONESHOT, IRQBALANCE_BANNED_INTERRUPTS
+ IRQBALANCE_BANNED_CPUS configuration environment variables
+- changed init script to not balance the timer interrupt due to
+ broken hardware
+- added $remote_fs to Required-Start since the binary needs
+ glib2
+
+-------------------------------------------------------------------
Old:
----
irqbalance-0.09.tar.gz
irqbalance-assert.diff
irqbalance-increase-limits
irqbalance-increase-limits2
New:
----
irqbalance-0.55.tar.bz2
irqbalance-fix-Makefile
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ irqbalance.spec ++++++
--- /var/tmp/diff_new_pack.P32104/_old 2007-04-12 23:29:52.000000000 +0200
+++ /var/tmp/diff_new_pack.P32104/_new 2007-04-12 23:29:52.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package irqbalance (Version 0.09)
+# spec file for package irqbalance (Version 0.55)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -15,15 +15,16 @@
Group: System/Daemons
Autoreqprov: on
PreReq: %insserv_prereq
-Version: 0.09
-Release: 91
+Version: 0.55
+Release: 1
Summary: Balance IRQs on SMP Machines
-Source: %{name}-%{version}.tar.gz
+Source: %{name}-%{version}.tar.bz2
Source2: irq_balancer
+URL: http://www.irqbalance.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Patch0: irqbalance-increase-limits
-Patch1: irqbalance-increase-limits2
-Patch2: irqbalance-assert.diff
+# xorg-x11-util-devel is for gccmakedep
+BuildRequires: glib2-devel xorg-x11-util-devel
+Patch0: irqbalance-fix-Makefile
%description
irqbalance dynamically switches the CPUs for IRQs to prevent cpu0 from
@@ -33,26 +34,21 @@
Authors:
--------
- Arjan van de Ven
+ Arjan van de Ven
%prep
-%setup -n irqbalance
+%setup
%patch0 -p1
-%patch1
-%patch2 -p1
%build
-rm -rf $RPM_BUILD_ROOT
make CFLAGS="$RPM_OPT_FLAGS -fPIE -pie"
%install
-mkdir -p $RPM_BUILD_ROOT/usr/sbin
+mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
mkdir -p $RPM_BUILD_ROOT/etc/init.d
-mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1/
-cp irqbalance $RPM_BUILD_ROOT/usr/sbin
-cp $RPM_SOURCE_DIR/irq_balancer $RPM_BUILD_ROOT/etc/init.d
-ln -s /etc/init.d/irq_balancer $RPM_BUILD_ROOT/usr/sbin/rcirq_balancer
-cp irqbalance.1 $RPM_BUILD_ROOT/usr/share/man/man1/
+install -m 0755 irqbalance $RPM_BUILD_ROOT/%{_sbindir}
+install -m 0755 $RPM_SOURCE_DIR/irq_balancer $RPM_BUILD_ROOT/etc/init.d
+ln -s /etc/init.d/irq_balancer $RPM_BUILD_ROOT/%{_sbindir}/rcirq_balancer
%clean
rm -rf $RPM_BUILD_ROOT
@@ -69,12 +65,20 @@
%files
%defattr(-,root,root,-)
-/usr/sbin/irqbalance
+%{_sbindir}/irqbalance
/etc/init.d/irq_balancer
-/usr/sbin/rcirq_balancer
-/usr/share/man/*/*
+%{_sbindir}/rcirq_balancer
%changelog
+* Wed Apr 11 2007 - bwalle@suse.de
+- updated to irqbalance.org 0.55
+ o rewrite from static arrays to dynamic lists using glib
+ o added IRQBALANCE_ONESHOT, IRQBALANCE_BANNED_INTERRUPTS
+ IRQBALANCE_BANNED_CPUS configuration environment variables
+- changed init script to not balance the timer interrupt due to
+ broken hardware
+- added $remote_fs to Required-Start since the binary needs
+ glib2
* Tue Apr 03 2007 - bwalle@suse.de
- increased IRQ number to (256 + (32*MAX_CPU)) as done in the
x86_64 kernel
++++++ irqbalance-fix-Makefile ++++++
---
Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
--- irqbalance-0.55.orig/Makefile
+++ irqbalance-0.55/Makefile
@@ -1,11 +1,12 @@
-CFLAGS+=-g -Os -D_FORTIFY_SOURCE=2 -Wall -W `pkg-config --cflags glib-2.0`
+override CFLAGS+=-g -Os -D_FORTIFY_SOURCE=2 -Wall -W `pkg-config --cflags glib-2.0`
+override LDFLAGS += $(shell pkg-config --libs glib-2.0)
all: irqbalance
LIBS=bitmap.o irqbalance.o cputree.o procinterrupts.o irqlist.o placement.o activate.o network.o powermode.o numa.o classify.o
irqbalance: .depend $(LIBS)
- gcc -g -O2 -D_FORTIFY_SOURCE=2 -Wall `pkg-config --libs glib-2.0` $(LIBS) -o irqbalance
+ gcc $(CFLAGS) $(LDFLAGS) $(LIBS) -o irqbalance
clean:
rm -f irqbalance *~ *.o .depend
++++++ irq_balancer ++++++
--- irqbalance/irq_balancer 2006-07-14 11:10:20.000000000 +0200
+++ /mounts/work_src_done/STABLE/irqbalance/irq_balancer 2007-04-12 18:35:11.008554000 +0200
@@ -8,7 +8,7 @@
#
### BEGIN INIT INFO
# Provides: irqbalance
-# Required-Start:
+# Required-Start: $remote_fs
# X-UnitedLinux-Should-Start:
# Required-Stop:
# X-UnitedLinux-Should-Stop:
@@ -28,6 +28,7 @@
test -x $IRQBALANCE_BIN || exit 5
PHYS=$(grep '^physical id' /proc/cpuinfo | sort -u | wc -l)
PROC=$(grep -c '^processor' /proc/cpuinfo)
+TIMER_IRQ=$(cat /proc/interrupts |grep timer | cut -f 1 -d ':' | sed -e 's/ \+//g')
. /etc/rc.status
@@ -38,6 +39,9 @@
start)
echo -n "Starting irqbalance "
if [ $PHYS -gt 1 ] || [ $PROC -gt 1 -a $PHYS -eq 0 ] ; then
+ if [ -n "$TIMER_IRQ" ] ; then
+ export IRQBALANCE_BANNED_INTERRUPTS="$TIMER_IRQ"
+ fi
startproc $IRQBALANCE_BIN
# Remember status and be verbose
rc_status -v
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org