Commit 72d861f
committed
ARC: boot log: eliminate struct cpuinfo_arc #1: mm
This is first step in eliminating struct cpuinfo_arc[NR_CPUS]
Back when we had just ARCompact ISA, the idea was to read/bit-fiddle
the BCRs once and and cache decoded information in a global struct ready
to use.
With ARCv2 it was modified to contained abstract / ISA agnostic
information.
However with ARCv3 there 's too much disparity to abstract in common
structures. So drop the entire decode once and store paradigm. Afterall
there's only 2 users of this machinery anyways: boot printing and
cat /proc/cpuinfo. None is performance critical to warrant locking away
resident memory per cpu.
This patch is first step in that direction
- decouples struct cpuinfo_arc_mmu from global struct cpuinfo_arc
- mmu code still has a trimmed down static version of
struct cpuinfo_arc_mmu to cache information needed in performance
critical code such as tlb flush routines
- folds read_decode_mmu_bcr() into arc_mmu_mumbojumbo()
- setup_processor() directly calls arc_mmu_init() and not via
arc_cpu_init()
Tested-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202308151213.qKZPMiyz-lkp@intel.com/
Signed-off-by: Vineet Gupta <vgupta@kernel.org>1 parent 1918693 commit 72d861f
4 files changed
Lines changed: 58 additions & 67 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
188 | 209 | | |
189 | 210 | | |
190 | 211 | | |
| |||
307 | 328 | | |
308 | 329 | | |
309 | 330 | | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | 331 | | |
316 | 332 | | |
317 | 333 | | |
| |||
326 | 342 | | |
327 | 343 | | |
328 | 344 | | |
329 | | - | |
330 | 345 | | |
331 | 346 | | |
332 | 347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | 189 | | |
191 | 190 | | |
192 | 191 | | |
| |||
256 | 255 | | |
257 | 256 | | |
258 | 257 | | |
259 | | - | |
| 258 | + | |
260 | 259 | | |
261 | 260 | | |
262 | 261 | | |
| |||
463 | 462 | | |
464 | 463 | | |
465 | 464 | | |
| 465 | + | |
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
134 | | - | |
| 136 | + | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
| |||
560 | 562 | | |
561 | 563 | | |
562 | 564 | | |
563 | | - | |
| 565 | + | |
564 | 566 | | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
587 | 573 | | |
588 | | - | |
589 | | - | |
| 574 | + | |
| 575 | + | |
590 | 576 | | |
591 | 577 | | |
592 | | - | |
| 578 | + | |
593 | 579 | | |
594 | 580 | | |
595 | 581 | | |
596 | | - | |
597 | | - | |
598 | | - | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
599 | 585 | | |
600 | | - | |
| 586 | + | |
601 | 587 | | |
602 | 588 | | |
603 | 589 | | |
604 | 590 | | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
609 | 595 | | |
610 | | - | |
611 | 596 | | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
622 | 601 | | |
623 | 602 | | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
629 | 609 | | |
630 | 610 | | |
631 | 611 | | |
632 | 612 | | |
633 | 613 | | |
634 | 614 | | |
635 | | - | |
| 615 | + | |
636 | 616 | | |
637 | 617 | | |
638 | 618 | | |
639 | 619 | | |
640 | | - | |
641 | | - | |
| 620 | + | |
642 | 621 | | |
643 | 622 | | |
644 | | - | |
645 | | - | |
646 | 623 | | |
647 | 624 | | |
648 | 625 | | |
| |||
719 | 696 | | |
720 | 697 | | |
721 | 698 | | |
722 | | - | |
| 699 | + | |
723 | 700 | | |
724 | 701 | | |
725 | 702 | | |
| |||
0 commit comments