fixing bz 211148

This commit is contained in:
Neil Horman 2006-11-15 15:23:48 +00:00
parent 31136e9f1a
commit e7224c4f99
3 changed files with 20 additions and 2 deletions

View File

@ -47,7 +47,11 @@ start() {
exit 0
fi
echo -n $"Starting $prog: "
daemon irqbalance $ONESHOT
if [ -n "$IRQ_AFFINITY_MASK" ];
then
IRQ_AFFINITY="--afin_mask $IRQ_AFFINITY_MASK"
fi
daemon irqbalance $ONESHOT $IRQ_AFFINITY
RETVAL=$?
echo
if [ $RETVAL -eq 0 ]; then

View File

@ -1,7 +1,7 @@
Summary: IRQ balancing daemon.
Name: irqbalance
Version: 1.13
Release: 7%{?dist}
Release: 8%{?dist}
Epoch: 1
Group: System Environment/Base
License: GPL/OSL
@ -16,6 +16,7 @@ Patch3: irqbalance-classes.patch
Patch4: irqbalance-oneshot.patch
Patch5: irqbalance-max-interrupts-increase.patch
Patch6: irqbalance-multicore.patch
Patch7: irqbalance-affinty-mask.patch
ExclusiveArch: i386 x86_64 ia64 ppc ppc64
Obsoletes: kernel-utils
@ -32,6 +33,7 @@ multiple CPUs for enhanced performance.
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%build
rm -rf $RPM_BUILD_ROOT
@ -79,6 +81,9 @@ exit 0
%changelog
* Wed Nov 15 2006 Neil Horman <nhorman@redhat.com> - 1.13-8
- Add ability to set default affinity mask (bz 211148)
* Wed Nov 08 2006 Neil Horman <nhorman@redhat.com> - 1.13-7
- fix up irqbalance to detect multicore (not ht) (bz 211183)

View File

@ -7,3 +7,12 @@
# load and balance it once; after balancing exit and do not change
# it again.
ONESHOT=
#
# IRQ_AFFINITY_MASK
# 64 bit bitmask which allows you to indicate which cpu's should
# be skipped when reblancing irqs. Cpu numbers which have their
# corresponding bits set to zero in this mask will not have any
# irq's assigned to them on rebalance
#
#IRQ_AFFINITY_MASK=