File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
arch/x86/kernel/cpu/resctrl Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -1117,6 +1117,17 @@ static enum resctrl_conf_type resctrl_peer_type(enum resctrl_conf_type my_type)
1117
1117
}
1118
1118
}
1119
1119
1120
+ static int rdt_has_sparse_bitmasks_show (struct kernfs_open_file * of ,
1121
+ struct seq_file * seq , void * v )
1122
+ {
1123
+ struct resctrl_schema * s = of -> kn -> parent -> priv ;
1124
+ struct rdt_resource * r = s -> res ;
1125
+
1126
+ seq_printf (seq , "%u\n" , r -> cache .arch_has_sparse_bitmasks );
1127
+
1128
+ return 0 ;
1129
+ }
1130
+
1120
1131
/**
1121
1132
* __rdtgroup_cbm_overlaps - Does CBM for intended closid overlap with other
1122
1133
* @r: Resource to which domain instance @d belongs.
@@ -1839,6 +1850,13 @@ static struct rftype res_common_files[] = {
1839
1850
.seq_show = rdtgroup_size_show ,
1840
1851
.fflags = RF_CTRL_BASE ,
1841
1852
},
1853
+ {
1854
+ .name = "sparse_masks" ,
1855
+ .mode = 0444 ,
1856
+ .kf_ops = & rdtgroup_kf_single_ops ,
1857
+ .seq_show = rdt_has_sparse_bitmasks_show ,
1858
+ .fflags = RF_CTRL_INFO | RFTYPE_RES_CACHE ,
1859
+ },
1842
1860
1843
1861
};
1844
1862
You can’t perform that action at this time.
0 commit comments