Skip to content

Commit 2659f46

Browse files
Fenghua YuKAGA-KOKO
authored andcommitted
x86/intel_rdt: Fix setting of closid when adding CPUs to a group
There was a cut & paste error when adding code to update the per-cpu closid when changing the bitmask of CPUs to an rdt group. The update erronously assigns the closid of the default group to the CPUs which are moved to a group instead of assigning the closid of their new group. Use the proper closid. Fixes: f410770 ("x86/intel_rdt: Update percpu closid immeditately on CPUs affected by change") Signed-off-by: Fenghua Yu <[email protected]> Cc: "Ravi V Shankar" <[email protected]> Cc: "Tony Luck" <[email protected]> Cc: "Sai Prakhya" <[email protected]> Cc: "Vikas Shivappa" <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
1 parent 7ce7f35 commit 2659f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/cpu/intel_rdt_rdtgroup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ static ssize_t rdtgroup_cpus_write(struct kernfs_open_file *of,
278278
continue;
279279
cpumask_andnot(&r->cpu_mask, &r->cpu_mask, tmpmask);
280280
}
281-
rdt_update_percpu_closid(tmpmask, rdtgroup_default.closid);
281+
rdt_update_percpu_closid(tmpmask, rdtgrp->closid);
282282
}
283283

284284
/* Done pushing/pulling - update this group with new mask */

0 commit comments

Comments
 (0)