aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/cpu/intel_rdt_rdtgroup.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c
index ea91750ba27f..74821bc457c0 100644
--- a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c
+++ b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c
@@ -2349,6 +2349,12 @@ static int rdtgroup_init_alloc(struct rdtgroup *rdtgrp)
2349 u32 *ctrl; 2349 u32 *ctrl;
2350 2350
2351 for_each_alloc_enabled_rdt_resource(r) { 2351 for_each_alloc_enabled_rdt_resource(r) {
2352 /*
2353 * Only initialize default allocations for CBM cache
2354 * resources
2355 */
2356 if (r->rid == RDT_RESOURCE_MBA)
2357 continue;
2352 list_for_each_entry(d, &r->domains, list) { 2358 list_for_each_entry(d, &r->domains, list) {
2353 d->have_new_ctrl = false; 2359 d->have_new_ctrl = false;
2354 d->new_ctrl = r->cache.shareable_bits; 2360 d->new_ctrl = r->cache.shareable_bits;
@@ -2386,6 +2392,12 @@ static int rdtgroup_init_alloc(struct rdtgroup *rdtgrp)
2386 } 2392 }
2387 2393
2388 for_each_alloc_enabled_rdt_resource(r) { 2394 for_each_alloc_enabled_rdt_resource(r) {
2395 /*
2396 * Only initialize default allocations for CBM cache
2397 * resources
2398 */
2399 if (r->rid == RDT_RESOURCE_MBA)
2400 continue;
2389 ret = update_domains(r, rdtgrp->closid); 2401 ret = update_domains(r, rdtgrp->closid);
2390 if (ret < 0) { 2402 if (ret < 0) {
2391 rdt_last_cmd_puts("failed to initialize allocations\n"); 2403 rdt_last_cmd_puts("failed to initialize allocations\n");