Commit 26b41d9
committed
x86/smpboot: moves x86_topology to static initialize and truncate
JIRA: https://issues.redhat.com/browse/RHEL-118964
commit fbc2010
Author: Li Chen <chenl311@chinatelecom.cn>
Date: Thu Jul 10 18:57:09 2025 +0800
x86/smpboot: moves x86_topology to static initialize and truncate
The #ifdeffery and the initializers in build_sched_topology() are just
disgusting.
Statically initialize the domain levels in the topology array and let
build_sched_topology() invalidate the package domain level when NUMA in
package is available.
Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Li Chen <chenl311@chinatelecom.cn>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: K Prateek Nayak <kprateek.nayak@amd.com>
Tested-by: K Prateek Nayak <kprateek.nayak@amd.com>
Link: https://lore.kernel.org/r/20250710105715.66594-4-me@linux.beauty
Signed-off-by: Phil Auld <pauld@redhat.com>1 parent e222e2c commit 26b41d9
1 file changed
+16
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
| 507 | + | |
| 508 | + | |
514 | 509 | | |
515 | | - | |
| 510 | + | |
516 | 511 | | |
517 | 512 | | |
518 | | - | |
| 513 | + | |
519 | 514 | | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
527 | 518 | | |
| 519 | + | |
| 520 | + | |
528 | 521 | | |
529 | | - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
530 | 525 | | |
531 | | - | |
| 526 | + | |
| 527 | + | |
532 | 528 | | |
| 529 | + | |
| 530 | + | |
533 | 531 | | |
534 | 532 | | |
535 | 533 | | |
| |||
0 commit comments