Commit 6b48b80
x86/resctrl: Handle removing directories in Sub-NUMA Cluster (SNC) mode
In SNC mode, there are multiple subdirectories in each L3 level monitor
directory (one for each SNC node). If all the CPUs in an SNC node are taken
offline, just remove the SNC directory for that node. In non-SNC mode, or when
the last SNC node directory is removed, remove the L3 monitor directory.
Add a helper function to avoid duplicated code.
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>
Link: https://lore.kernel.org/r/20240702173820.90368-2-tony.luck@intel.com1 parent 0158ed6 commit 6b48b80
1 file changed
Lines changed: 29 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3006 | 3006 | | |
3007 | 3007 | | |
3008 | 3008 | | |
| 3009 | + | |
| 3010 | + | |
| 3011 | + | |
| 3012 | + | |
| 3013 | + | |
| 3014 | + | |
| 3015 | + | |
| 3016 | + | |
| 3017 | + | |
| 3018 | + | |
| 3019 | + | |
| 3020 | + | |
| 3021 | + | |
| 3022 | + | |
| 3023 | + | |
3009 | 3024 | | |
3010 | 3025 | | |
3011 | | - | |
| 3026 | + | |
| 3027 | + | |
| 3028 | + | |
3012 | 3029 | | |
3013 | 3030 | | |
3014 | | - | |
| 3031 | + | |
3015 | 3032 | | |
3016 | 3033 | | |
| 3034 | + | |
| 3035 | + | |
3017 | 3036 | | |
3018 | 3037 | | |
| 3038 | + | |
| 3039 | + | |
| 3040 | + | |
| 3041 | + | |
| 3042 | + | |
3019 | 3043 | | |
3020 | | - | |
3021 | | - | |
| 3044 | + | |
3022 | 3045 | | |
3023 | 3046 | | |
3024 | | - | |
| 3047 | + | |
3025 | 3048 | | |
3026 | 3049 | | |
3027 | 3050 | | |
| |||
3991 | 4014 | | |
3992 | 4015 | | |
3993 | 4016 | | |
3994 | | - | |
| 4017 | + | |
3995 | 4018 | | |
3996 | 4019 | | |
3997 | 4020 | | |
| |||
0 commit comments