libexec: fixed listdir and isdir in defirqaffinity.py
Resolves: rhbz#1252160 Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
5a74141d79
commit
7d1febccaa
1 changed files with 2 additions and 2 deletions
|
|
@ -57,7 +57,7 @@ def verify(shouldbemask):
|
|||
sys.exit(1)
|
||||
|
||||
# now verify each /proc/irq/$num/smp_affinity
|
||||
interruptdirs = [ f for f in listdir(irqpath) if isdir(join(irqpath,f)) ]
|
||||
interruptdirs = [ f for f in os.listdir(irqpath) if os.path.isdir(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)
|
||||
|
|
@ -103,7 +103,7 @@ fo.close()
|
|||
|
||||
# now adjust each /proc/irq/$num/smp_affinity
|
||||
|
||||
interruptdirs = [ f for f in listdir(irqpath) if isdir(join(irqpath,f)) ]
|
||||
interruptdirs = [ f for f in os.listdir(irqpath) if os.path.isdir(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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue