x86/resctrl: Split struct rdt_resource
[linux-2.6-microblaze.git] / arch / x86 / kernel / cpu / resctrl / pseudo_lock.c
index 2207916..17868ac 100644 (file)
@@ -688,8 +688,8 @@ int rdtgroup_locksetup_enter(struct rdtgroup *rdtgrp)
         *   resource, the portion of cache used by it should be made
         *   unavailable to all future allocations from both resources.
         */
-       if (rdt_resources_all[RDT_RESOURCE_L3DATA].alloc_enabled ||
-           rdt_resources_all[RDT_RESOURCE_L2DATA].alloc_enabled) {
+       if (rdt_resources_all[RDT_RESOURCE_L3DATA].r_resctrl.alloc_enabled ||
+           rdt_resources_all[RDT_RESOURCE_L2DATA].r_resctrl.alloc_enabled) {
                rdt_last_cmd_puts("CDP enabled\n");
                return -EINVAL;
        }