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