File tree Expand file tree Collapse file tree 2 files changed +15
-15
lines changed
arch/x86/kernel/cpu/resctrl Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -164,21 +164,6 @@ static inline void cache_alloc_hsw_probe(void)
164
164
rdt_alloc_capable = true;
165
165
}
166
166
167
- bool is_mba_sc (struct rdt_resource * r )
168
- {
169
- if (!r )
170
- r = resctrl_arch_get_resource (RDT_RESOURCE_MBA );
171
-
172
- /*
173
- * The software controller support is only applicable to MBA resource.
174
- * Make sure to check for resource type.
175
- */
176
- if (r -> rid != RDT_RESOURCE_MBA )
177
- return false;
178
-
179
- return r -> membw .mba_sc ;
180
- }
181
-
182
167
/*
183
168
* rdt_get_mb_table() - get a mapping of bandwidth(b/w) percentage values
184
169
* exposed to user interface and the h/w understandable delay values.
Original file line number Diff line number Diff line change @@ -1535,6 +1535,21 @@ unsigned int rdtgroup_cbm_to_size(struct rdt_resource *r,
1535
1535
return size ;
1536
1536
}
1537
1537
1538
+ bool is_mba_sc (struct rdt_resource * r )
1539
+ {
1540
+ if (!r )
1541
+ r = resctrl_arch_get_resource (RDT_RESOURCE_MBA );
1542
+
1543
+ /*
1544
+ * The software controller support is only applicable to MBA resource.
1545
+ * Make sure to check for resource type.
1546
+ */
1547
+ if (r -> rid != RDT_RESOURCE_MBA )
1548
+ return false;
1549
+
1550
+ return r -> membw .mba_sc ;
1551
+ }
1552
+
1538
1553
/*
1539
1554
* rdtgroup_size_show - Display size in bytes of allocated regions
1540
1555
*
You can’t perform that action at this time.
0 commit comments