Repository navigation
Commit fda9d86
powerpc: Reduce footprint of xics_ipi_struct
Right now we allocate a cacheline sized NR_CPUS array for xics IPI
communication. Use DECLARE_PER_CPU_SHARED_ALIGNED to put it in percpu
data in its own cacheline since it is written to by other cpus.
On a kernel with NR_CPUS=1024, this saves quite a lot of memory:
text data bss dec hex filename
8767779 2944260 1505724 13217763 c9afe3 vmlinux.irq_cpustat
8767555 2813444 1505724 13086723 c7b003 vmlinux.xics
A saving of around 128kB.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>1 parent 8c007bf commit fda9d86
1 file changed
Lines changed: 11 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
| 513 | + | |
518 | 514 | | |
519 | 515 | | |
520 | 516 | | |
521 | | - | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
522 | 520 | | |
523 | 521 | | |
524 | 522 | | |
| |||
544 | 542 | | |
545 | 543 | | |
546 | 544 | | |
| 545 | + | |
| 546 | + | |
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
550 | | - | |
551 | | - | |
552 | | - | |
| 550 | + | |
| 551 | + | |
553 | 552 | | |
554 | 553 | | |
555 | | - | |
556 | | - | |
| 554 | + | |
557 | 555 | | |
558 | 556 | | |
559 | | - | |
560 | | - | |
| 557 | + | |
561 | 558 | | |
562 | 559 | | |
563 | 560 | | |
564 | | - | |
565 | | - | |
| 561 | + | |
566 | 562 | | |
567 | 563 | | |
568 | 564 | | |
| |||
0 commit comments