We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e278af8 commit ab6a211Copy full SHA for ab6a211
arch/x86/kernel/cpu/resctrl/rdtgroup.c
@@ -1741,16 +1741,16 @@ static int set_cache_qos_cfg(int level, bool enable)
1741
struct rdt_domain *d;
1742
int cpu;
1743
1744
- if (!zalloc_cpumask_var(&cpu_mask, GFP_KERNEL))
1745
- return -ENOMEM;
1746
-
1747
if (level == RDT_RESOURCE_L3)
1748
update = l3_qos_cfg_update;
1749
else if (level == RDT_RESOURCE_L2)
1750
update = l2_qos_cfg_update;
1751
else
1752
return -EINVAL;
1753
+ if (!zalloc_cpumask_var(&cpu_mask, GFP_KERNEL))
+ return -ENOMEM;
+
1754
r_l = &rdt_resources_all[level];
1755
list_for_each_entry(d, &r_l->domains, list) {
1756
/* Pick one CPU from each domain instance to update MSR */
0 commit comments