summaryrefslogtreecommitdiff
path: root/arch/x86/events/rapl.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2024-02-13 22:06:13 +0100
committerThomas Gleixner <tglx@linutronix.de>2024-02-15 22:07:45 +0100
commitbd745d1c41e7fa56242889eb5dc6df2d7dd5df32 (patch)
treec8bf220dcd4926d1647121eeb9a7083556e3dc41 /arch/x86/events/rapl.c
parent8078f4d6102f9370b3b7436d25717735d21f5c09 (diff)
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
Diffstat (limited to 'arch/x86/events/rapl.c')
-rw-r--r--arch/x86/events/rapl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/events/rapl.c b/arch/x86/events/rapl.c
index 8d98d468b976..fb2b1961e5a3 100644
--- a/arch/x86/events/rapl.c
+++ b/arch/x86/events/rapl.c
@@ -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 *);