@@ -72,9 +72,7 @@ def _get_irq_numbers(self) -> bool:
72
72
return False
73
73
74
74
formatted_keys = ", " .join (str (k ) for k in self .irq_numbers .keys ())
75
- logging .info (
76
- "Successfully found IRQ numbers: %s" , formatted_keys
77
- )
75
+ logging .info ("Successfully found IRQ numbers: %s" , formatted_keys )
78
76
return True
79
77
80
78
def _get_smp_affinities (self ) -> bool :
@@ -131,9 +129,7 @@ def _get_smp_affinities(self) -> bool:
131
129
return False
132
130
return True
133
131
134
- def _get_interrupt_counts (
135
- self , irq_number : int
136
- ) -> Optional [List [int ]]:
132
+ def _get_interrupt_counts (self , irq_number : int ) -> Optional [List [int ]]:
137
133
"""
138
134
Gets current interrupt counts for a specific IRQ across all CPUs.
139
135
@@ -152,9 +148,7 @@ def _get_interrupt_counts(
152
148
# Get counts only for the number of available CPUs
153
149
max_idx = self .num_cpus + 1
154
150
counts = [
155
- int (p )
156
- for p in parts [1 :max_idx ]
157
- if p .isdigit ()
151
+ int (p ) for p in parts [1 :max_idx ] if p .isdigit ()
158
152
]
159
153
return counts
160
154
except Exception as e :
@@ -174,8 +168,9 @@ def run_test(self) -> bool:
174
168
True if an interrupt was detected, False otherwise.
175
169
"""
176
170
if not self ._get_irq_numbers ():
177
- raise RuntimeError ("Could not find IRQs for '{}'." .
178
- format (self .irq_name ))
171
+ raise RuntimeError (
172
+ "Could not find IRQs for '{}'." .format (self .irq_name )
173
+ )
179
174
180
175
if not self ._get_smp_affinities ():
181
176
raise RuntimeError ("Could not get CPU affinities for all IRQs." )
0 commit comments