File irqbindall_cosmetic_fix-bnc703490.diff of Package ibmrtpkgs
From: Jean Delvare <jdelvare@suse.de>
Subject: irqbindall: Fix wrong assumption on /proc/irq contents
/proc/irq can contain extra files (in particular default_smp_affinity) so
avoid wrong assumptions and only process actual per-irq directories.
---
irqbindall/irqbindall | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: ibmrtpkgs-2/irqbindall/irqbindall
===================================================================
--- ibmrtpkgs-2.orig/irqbindall/irqbindall
+++ ibmrtpkgs-2/irqbindall/irqbindall
@@ -29,7 +29,7 @@ start() {
echo -n "Binding interrupts to cpu_mask: $cpumask... "
exec 3>&1
- for i in `ls /proc/irq/ | grep -v cpu_mask` ;
+ for i in `ls /proc/irq/ | grep '^[0-9]'`
do
stderr="$((echo "$cpumask" > /proc/irq/$i/smp_affinity) 2>&1 >&3 3>&-)"
if [ -n "$stderr" ]; then