aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2019-02-26 01:20:01 -0500
committerIngo Molnar <mingo@kernel.org>2019-04-19 04:56:05 -0400
commit169d0869962da362b5058e31f87911b2960418af (patch)
tree31f7244cdf95c904858046067bf7958f5d5235c3
parent3a1c779fb8f71e772e2145e68c262936ada815ed (diff)
x86/smpboot: Rename match_die() to match_pkg()
Syntax only, no functional or semantic change. This routine matches packages, not die, so name it thus. Signed-off-by: Len Brown <len.brown@intel.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Will Deacon <will.deacon@arm.com> Link: http://lkml.kernel.org/r/7ca18c4ae7816a1f9eda37414725df676e63589d.1551160674.git.len.brown@intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--arch/x86/kernel/smpboot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index ce1a67b70168..3f8bbfb26c18 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -455,7 +455,7 @@ static bool match_llc(struct cpuinfo_x86 *c, struct cpuinfo_x86 *o)
455 * multicore group inside a NUMA node. If this happens, we will 455 * multicore group inside a NUMA node. If this happens, we will
456 * discard the MC level of the topology later. 456 * discard the MC level of the topology later.
457 */ 457 */
458static bool match_die(struct cpuinfo_x86 *c, struct cpuinfo_x86 *o) 458static bool match_pkg(struct cpuinfo_x86 *c, struct cpuinfo_x86 *o)
459{ 459{
460 if (c->phys_proc_id == o->phys_proc_id) 460 if (c->phys_proc_id == o->phys_proc_id)
461 return true; 461 return true;
@@ -546,7 +546,7 @@ void set_cpu_sibling_map(int cpu)
546 for_each_cpu(i, cpu_sibling_setup_mask) { 546 for_each_cpu(i, cpu_sibling_setup_mask) {
547 o = &cpu_data(i); 547 o = &cpu_data(i);
548 548
549 if ((i == cpu) || (has_mp && match_die(c, o))) { 549 if ((i == cpu) || (has_mp && match_pkg(c, o))) {
550 link_mask(topology_core_cpumask, cpu, i); 550 link_mask(topology_core_cpumask, cpu, i);
551 551
552 /* 552 /*
@@ -570,7 +570,7 @@ void set_cpu_sibling_map(int cpu)
570 } else if (i != cpu && !c->booted_cores) 570 } else if (i != cpu && !c->booted_cores)
571 c->booted_cores = cpu_data(i).booted_cores; 571 c->booted_cores = cpu_data(i).booted_cores;
572 } 572 }
573 if (match_die(c, o) && !topology_same_node(c, o)) 573 if (match_pkg(c, o) && !topology_same_node(c, o))
574 x86_has_numa_in_package = true; 574 x86_has_numa_in_package = true;
575 } 575 }
576 576