x86/cpu/topology: Rename topology_max_die_per_package()
The plural of die is dies. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Tested-by: Michael Kelley <mhklinux@outlook.com> Tested-by: Sohil Mehta <sohil.mehta@intel.com> Link: https://lore.kernel.org/r/20240213210253.065874205@linutronix.de
This commit is contained in:
parent
8078f4d610
commit
bd745d1c41
@ -834,7 +834,7 @@ static int __init cstate_init(void)
|
||||
}
|
||||
|
||||
if (has_cstate_pkg) {
|
||||
if (topology_max_die_per_package() > 1) {
|
||||
if (topology_max_dies_per_package() > 1) {
|
||||
err = perf_pmu_register(&cstate_pkg_pmu,
|
||||
"cstate_die", -1);
|
||||
} else {
|
||||
|
@ -1893,7 +1893,7 @@ static int __init intel_uncore_init(void)
|
||||
return -ENODEV;
|
||||
|
||||
__uncore_max_dies =
|
||||
topology_max_packages() * topology_max_die_per_package();
|
||||
topology_max_packages() * topology_max_dies_per_package();
|
||||
|
||||
id = x86_match_cpu(intel_uncore_match);
|
||||
if (!id) {
|
||||
|
@ -1406,7 +1406,7 @@ static int topology_gidnid_map(int nodeid, u32 gidnid)
|
||||
*/
|
||||
for (i = 0; i < 8; i++) {
|
||||
if (nodeid == GIDNIDMAP(gidnid, i)) {
|
||||
if (topology_max_die_per_package() > 1)
|
||||
if (topology_max_dies_per_package() > 1)
|
||||
die_id = i;
|
||||
else
|
||||
die_id = topology_phys_to_logical_pkg(i);
|
||||
|
@ -674,7 +674,7 @@ static const struct attribute_group *rapl_attr_update[] = {
|
||||
|
||||
static int __init init_rapl_pmus(void)
|
||||
{
|
||||
int maxdie = topology_max_packages() * topology_max_die_per_package();
|
||||
int maxdie = topology_max_packages() * topology_max_dies_per_package();
|
||||
size_t size;
|
||||
|
||||
size = sizeof(*rapl_pmus) + maxdie * sizeof(struct rapl_pmu *);
|
||||
|
@ -152,7 +152,7 @@ static inline unsigned int topology_max_packages(void)
|
||||
return __max_logical_packages;
|
||||
}
|
||||
|
||||
static inline unsigned int topology_max_die_per_package(void)
|
||||
static inline unsigned int topology_max_dies_per_package(void)
|
||||
{
|
||||
return __max_dies_per_package;
|
||||
}
|
||||
|
@ -782,7 +782,7 @@ static int __init coretemp_init(void)
|
||||
if (!x86_match_cpu(coretemp_ids))
|
||||
return -ENODEV;
|
||||
|
||||
max_zones = topology_max_packages() * topology_max_die_per_package();
|
||||
max_zones = topology_max_packages() * topology_max_dies_per_package();
|
||||
zone_devices = kcalloc(max_zones, sizeof(struct platform_device *),
|
||||
GFP_KERNEL);
|
||||
if (!zone_devices)
|
||||
|
@ -242,7 +242,7 @@ static int __init intel_uncore_init(void)
|
||||
return -ENODEV;
|
||||
|
||||
uncore_max_entries = topology_max_packages() *
|
||||
topology_max_die_per_package();
|
||||
topology_max_dies_per_package();
|
||||
uncore_instances = kcalloc(uncore_max_entries,
|
||||
sizeof(*uncore_instances), GFP_KERNEL);
|
||||
if (!uncore_instances)
|
||||
|
@ -1564,7 +1564,7 @@ struct rapl_package *rapl_add_package(int id, struct rapl_if_priv *priv, bool id
|
||||
if (id_is_cpu) {
|
||||
rp->id = topology_logical_die_id(id);
|
||||
rp->lead_cpu = id;
|
||||
if (topology_max_die_per_package() > 1)
|
||||
if (topology_max_dies_per_package() > 1)
|
||||
snprintf(rp->name, PACKAGE_DOMAIN_NAME_LENGTH, "package-%d-die-%d",
|
||||
topology_physical_package_id(id), topology_die_id(id));
|
||||
else
|
||||
|
@ -607,7 +607,7 @@ void __init intel_hfi_init(void)
|
||||
|
||||
/* There is one HFI instance per die/package. */
|
||||
max_hfi_instances = topology_max_packages() *
|
||||
topology_max_die_per_package();
|
||||
topology_max_dies_per_package();
|
||||
|
||||
/*
|
||||
* This allocation may fail. CPU hotplug callbacks must check
|
||||
|
@ -587,7 +587,7 @@ static int powerclamp_idle_injection_register(void)
|
||||
poll_pkg_cstate_enable = false;
|
||||
if (cpumask_equal(cpu_present_mask, idle_injection_cpu_mask)) {
|
||||
ii_dev = idle_inject_register_full(idle_injection_cpu_mask, idle_inject_update);
|
||||
if (topology_max_packages() == 1 && topology_max_die_per_package() == 1)
|
||||
if (topology_max_packages() == 1 && topology_max_dies_per_package() == 1)
|
||||
poll_pkg_cstate_enable = true;
|
||||
} else {
|
||||
ii_dev = idle_inject_register(idle_injection_cpu_mask);
|
||||
|
@ -494,7 +494,7 @@ static int __init pkg_temp_thermal_init(void)
|
||||
if (!x86_match_cpu(pkg_temp_thermal_ids))
|
||||
return -ENODEV;
|
||||
|
||||
max_id = topology_max_packages() * topology_max_die_per_package();
|
||||
max_id = topology_max_packages() * topology_max_dies_per_package();
|
||||
zones = kcalloc(max_id, sizeof(struct zone_device *),
|
||||
GFP_KERNEL);
|
||||
if (!zones)
|
||||
|
Loading…
x
Reference in New Issue
Block a user