Commit 4964610
irqchip/mips-gic: Replace open coded online CPU iterations
Several places in the MIPS GIC driver iterate over the online CPUs to
operate on the CPU's GIC local register block, accessed via the GIC's
other/redirect register block.
Abstract the process of iterating over online CPUs & configuring the
other/redirect region to access their registers through a new
for_each_online_cpu_gic() macro and convert all usage sites over.
Signed-off-by: Paul Burton <paulburton@kernel.org>
Signed-off-by: Chao-ying Fu <cfu@wavecomp.com>
Signed-off-by: Dragan Mladjenovic <dragan.mladjenovic@syrmia.com>
Signed-off-by: Aleksandar Rikalo <arikalo@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Serge Semin <fancer.lancer@gmail.com>
Tested-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Link: https://lore.kernel.org/all/20241028175935.51250-2-arikalo@gmail.com1 parent d1a128b commit 4964610
1 file changed
Lines changed: 41 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
69 | 107 | | |
70 | 108 | | |
71 | 109 | | |
| |||
350 | 388 | | |
351 | 389 | | |
352 | 390 | | |
353 | | - | |
354 | 391 | | |
355 | 392 | | |
356 | 393 | | |
357 | 394 | | |
358 | 395 | | |
359 | 396 | | |
360 | | - | |
361 | | - | |
362 | | - | |
| 397 | + | |
363 | 398 | | |
364 | | - | |
365 | | - | |
366 | 399 | | |
367 | 400 | | |
368 | 401 | | |
369 | 402 | | |
370 | 403 | | |
371 | | - | |
372 | 404 | | |
373 | 405 | | |
374 | 406 | | |
375 | 407 | | |
376 | 408 | | |
377 | 409 | | |
378 | | - | |
379 | | - | |
380 | | - | |
| 410 | + | |
381 | 411 | | |
382 | | - | |
383 | | - | |
384 | 412 | | |
385 | 413 | | |
386 | 414 | | |
| |||
469 | 497 | | |
470 | 498 | | |
471 | 499 | | |
472 | | - | |
473 | 500 | | |
474 | 501 | | |
475 | 502 | | |
| |||
533 | 560 | | |
534 | 561 | | |
535 | 562 | | |
536 | | - | |
537 | | - | |
538 | | - | |
| 563 | + | |
539 | 564 | | |
540 | | - | |
541 | | - | |
542 | 565 | | |
543 | 566 | | |
544 | 567 | | |
| |||
0 commit comments