Archive-only list for patches
 help / color / mirror / Atom feed
* [PATCH 0/3] Add and use get_cpu_cacheinfo_level()
@ 2024-05-31 19:57 Tony Luck
  2024-05-31 19:57 ` [PATCH 1/3] cacheinfo: Add function to get cacheinfo for a given (cpu, cachelevel) Tony Luck
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Tony Luck @ 2024-05-31 19:57 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Andrew Morton, Thomas Gleixner,
	Borislav Petkov
  Cc: Fenghua Yu, Reinette Chatre, Maciej Wieczor-Retman, Peter Newman,
	James Morse, Babu Moger, Drew Fustini, Dave Martin, linux-kernel,
	patches, Tony Luck

[get_maintainer.pl is vague about who owns <linux/cacheinfo.h>
 to I've scattershooted some of the folks that committed changes
 for this file]

This helper function came up in discussion of the resctrl patches
for Sub-NUMA Cluster (SNC) support. Reinette pointed out[1] that there
are already two places where it would clean things up by avoiding
open coding. The SNC patches will add two additional call sites.

So rather than have this jammed up as part of the SNC series, I'm
posting it as a simple standalone cleanup.

Signed-off-by: Tony Luck <tony.luck@intel.com>

[1] https://lore.kernel.org/all/050c64b3-20b3-4db6-b782-f5124ebaab31@intel.com/

Tony Luck (3):
  cacheinfo: Add function to get cacheinfo for a given (cpu, cachelevel)
  x86/resctrl: Replace open code cacheinfo search in
    pseudo_lock_region_init()
  x86/resctrl: Replace open code cacheinfo search in
    rdtgroup_cbm_to_size()

 include/linux/cacheinfo.h                 | 21 ++++++++++++++++-----
 arch/x86/kernel/cpu/resctrl/pseudo_lock.c | 17 ++++++-----------
 arch/x86/kernel/cpu/resctrl/rdtgroup.c    | 14 +++++---------
 3 files changed, 27 insertions(+), 25 deletions(-)


base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
-- 
2.45.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-06-05  8:14 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-31 19:57 [PATCH 0/3] Add and use get_cpu_cacheinfo_level() Tony Luck
2024-05-31 19:57 ` [PATCH 1/3] cacheinfo: Add function to get cacheinfo for a given (cpu, cachelevel) Tony Luck
2024-06-03 18:06   ` Reinette Chatre
2024-05-31 19:57 ` [PATCH 2/3] x86/resctrl: Replace open code cacheinfo search in pseudo_lock_region_init() Tony Luck
2024-06-03 18:07   ` Reinette Chatre
2024-05-31 19:57 ` [PATCH 3/3] x86/resctrl: Replace open code cacheinfo search in rdtgroup_cbm_to_size() Tony Luck
2024-06-03 18:07   ` Reinette Chatre
2024-06-04 18:03     ` Luck, Tony
2024-06-03 16:55 ` [PATCH 0/3] Add and use get_cpu_cacheinfo_level() Reinette Chatre
2024-06-03 17:01   ` Borislav Petkov
2024-06-03 17:18     ` Luck, Tony
2024-06-03 18:24       ` Borislav Petkov
2024-06-05  2:22     ` Andrew Morton
2024-06-05  8:14       ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox