Lines Matching refs:nr_cpus
54 static unsigned int nr_cpus; variable
98 nr_cpus = 0; in collect_irq_info()
106 nr_cpus++; in collect_irq_info()
129 tst_res(TINFO, "Found %u CPUS, %u IRQs", nr_cpus, nr_irqs); in collect_irq_info()
133 nr_cpus * (nr_irqs + 1) * sizeof(*irq_stats)); in collect_irq_info()
135 nr_cpus * nr_irqs * sizeof(*irq_affinity)); in collect_irq_info()
148 irq_stats[row * nr_cpus + col] = acc; in collect_irq_info()
182 for (col = 0; col < nr_cpus; col++) { in collect_irq_info()
186 cpu_total += irq_stats[row * nr_cpus + col]; in collect_irq_info()
188 irq_stats[row * nr_cpus + col] = cpu_total; in collect_irq_info()
202 if (col > nr_cpus) { in collect_irq_info()
225 for (bit = 0; bit < 4 && col < nr_cpus; bit++) { in collect_irq_info()
226 irq_affinity[row * nr_cpus + col++] = in collect_irq_info()
231 if (col < nr_cpus) { in collect_irq_info()
245 for (col = 0; col < nr_cpus; col++) in print_irq_info()
253 for (col = 0; col < nr_cpus; col++) { in print_irq_info()
254 count = irq_stats[row * nr_cpus + col]; in print_irq_info()
255 aff = irq_affinity[row * nr_cpus + col]; in print_irq_info()
265 for (col = 0; col < nr_cpus; col++) in print_irq_info()
266 tst_printf("%10u ", irq_stats[row * nr_cpus + col]); in print_irq_info()
276 for (col = 0; col < nr_cpus; col++) { in evidence_of_change()
277 if (!irq_stats[row * nr_cpus + col]) in evidence_of_change()
280 if (irq_affinity[row * nr_cpus + col] == ALLOW) in evidence_of_change()
297 if (nr_cpus < 1) in setup()