]> www.infradead.org Git - linux.git/commit
x86/resctrl: Refactor mkdir_mondata_subdir() with a helper function
authorTony Luck <tony.luck@intel.com>
Fri, 28 Jun 2024 21:56:11 +0000 (14:56 -0700)
committerBorislav Petkov (AMD) <bp@alien8.de>
Tue, 2 Jul 2024 17:49:54 +0000 (19:49 +0200)
commit603cf1e28838a01e4f140c3054ce147f8b087d08
tree8a882d973c5d7ec99ef08cb1141b750fcfa59431
parent587edd7069b9e7dc7993d2df9371e7c37a4d2133
x86/resctrl: Refactor mkdir_mondata_subdir() with a helper function

In Sub-NUMA Cluster (SNC) mode Linux must create the monitor
files in the original "mon_L3_XX" directories and also in each
of the "mon_sub_L3_YY" directories.

Refactor mkdir_mondata_subdir() to move the creation of monitoring files
into a helper function to avoid the need to duplicate code later.

No functional change.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Tested-by: Babu Moger <babu.moger@amd.com>
Link: https://lore.kernel.org/r/20240628215619.76401-12-tony.luck@intel.com
arch/x86/kernel/cpu/resctrl/rdtgroup.c