The quilt patch titled Subject: x86/resctrl: replace open code cacheinfo search in pseudo_lock_region_init() has been removed from the -mm tree. Its filename was x86-resctrl-replace-open-code-cacheinfo-search-in-pseudo_lock_region_init.patch This patch was dropped because it is obsolete ------------------------------------------------------ From: Tony Luck <tony.luck@xxxxxxxxx> Subject: x86/resctrl: replace open code cacheinfo search in pseudo_lock_region_init() Date: Fri, 31 May 2024 12:57:19 -0700 Use get_cpu_cacheinfo_level() instead of open coded search. Link: https://lkml.kernel.org/r/20240531195720.232561-3-tony.luck@xxxxxxxxx Signed-off-by: Tony Luck <tony.luck@xxxxxxxxx> Cc: Babu Moger <babu.moger@xxxxxxx> Cc: Borislav Petkov (AMD) <bp@xxxxxxxxx> Cc: Dave Martin <Dave.Martin@xxxxxxx> Cc: Drew Fustini <dfustini@xxxxxxxxxxxx> Cc: Fenghua Yu <fenghua.yu@xxxxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Cc: James Morse <james.morse@xxxxxxx> Cc: Maciej Wieczor-Retman <maciej.wieczor-retman@xxxxxxxxx> Cc: Peter Newman <peternewman@xxxxxxxxxx> Cc: Reinette Chatre <reinette.chatre@xxxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/x86/kernel/cpu/resctrl/pseudo_lock.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) --- a/arch/x86/kernel/cpu/resctrl/pseudo_lock.c~x86-resctrl-replace-open-code-cacheinfo-search-in-pseudo_lock_region_init +++ a/arch/x86/kernel/cpu/resctrl/pseudo_lock.c @@ -292,9 +292,8 @@ static void pseudo_lock_region_clear(str */ static int pseudo_lock_region_init(struct pseudo_lock_region *plr) { - struct cpu_cacheinfo *ci; + struct cacheinfo *ci; int ret; - int i; /* Pick the first cpu we find that is associated with the cache. */ plr->cpu = cpumask_first(&plr->d->cpu_mask); @@ -306,15 +305,11 @@ static int pseudo_lock_region_init(struc goto out_region; } - ci = get_cpu_cacheinfo(plr->cpu); - - plr->size = rdtgroup_cbm_to_size(plr->s->res, plr->d, plr->cbm); - - for (i = 0; i < ci->num_leaves; i++) { - if (ci->info_list[i].level == plr->s->res->cache_level) { - plr->line_size = ci->info_list[i].coherency_line_size; - return 0; - } + ci = get_cpu_cacheinfo_level(plr->cpu, plr->s->res->cache_level); + if (ci) { + plr->line_size = ci->coherency_line_size; + plr->size = rdtgroup_cbm_to_size(plr->s->res, plr->d, plr->cbm); + return 0; } ret = -1; _ Patches currently in -mm which might be from tony.luck@xxxxxxxxx are x86-resctrl-replace-open-code-cacheinfo-search-in-rdtgroup_cbm_to_size.patch