x86/intel_rdt: Fix setting of closid when adding CPUs to a group
authorFenghua Yu <fenghua.yu@intel.com>
Fri, 18 Nov 2016 23:18:03 +0000 (15:18 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 28 Nov 2016 10:07:50 +0000 (11:07 +0100)
commit2659f46da8307871989f475accdcdfc4807e9e6c
treed2c0d138ccd2efead2a0fa5a56742ad6a4f3e934
parent7ce7f35b33eb42b6aa4cf176fa34372b21b8472b
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: f410770293a1 ("x86/intel_rdt: Update percpu closid immeditately on CPUs affected by change")
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Cc: "Ravi V Shankar" <ravi.v.shankar@intel.com>
Cc: "Tony Luck" <tony.luck@intel.com>
Cc: "Sai Prakhya" <sai.praneeth.prakhya@intel.com>
Cc: "Vikas Shivappa" <vikas.shivappa@linux.intel.com>
Cc: "H. Peter Anvin" <h.peter.anvin@intel.com>
Link: http://lkml.kernel.org/r/1479511084-59727-1-git-send-email-fenghua.yu@intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/intel_rdt_rdtgroup.c