diff --git a/libexec/defirqaffinity.py b/libexec/defirqaffinity.py index 13768de..54d6499 100755 --- a/libexec/defirqaffinity.py +++ b/libexec/defirqaffinity.py @@ -59,7 +59,7 @@ def verify(shouldbemask): sys.exit(1) # now verify each /proc/irq/$num/smp_affinity - interruptdirs = [ f for f in os.listdir(irqpath) if os.path.isdir(join(irqpath,f)) ] + interruptdirs = [ f for f in os.listdir(irqpath) if os.path.isdir(os.path.join(irqpath,f)) ] # IRQ 2 - cascaded signals from IRQs 8-15 (any devices configured to use IRQ 2 will actually be using IRQ 9) interruptdirs.remove("2") # IRQ 0 - system timer (cannot be changed) @@ -73,7 +73,7 @@ def verify(shouldbemask): inplacemask = inplacemask | 1 << i; if (inplacemask & ~shouldbemask): sys.stderr.write("verify: failed: irqaffinity (%s) inplacemask=%x shouldbemask=%x\n" % (fname, inplacemask, shouldbemask)) - sys.exit(1) + sys.exit(1) sys.exit(0) @@ -105,7 +105,7 @@ fo.close() # now adjust each /proc/irq/$num/smp_affinity -interruptdirs = [ f for f in os.listdir(irqpath) if os.path.isdir(join(irqpath,f)) ] +interruptdirs = [ f for f in os.listdir(irqpath) if os.path.isdir(os.path.join(irqpath,f)) ] # IRQ 2 - cascaded signals from IRQs 8-15 (any devices configured to use IRQ 2 will actually be using IRQ 9) interruptdirs.remove("2")