From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932346AbcK1KRZ (ORCPT ); Mon, 28 Nov 2016 05:17:25 -0500 Received: from terminus.zytor.com ([198.137.202.10]:38066 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754268AbcK1KQ7 (ORCPT ); Mon, 28 Nov 2016 05:16:59 -0500 Date: Mon, 28 Nov 2016 02:16:50 -0800 From: tip-bot for Fenghua Yu Message-ID: Cc: mingo@kernel.org, h.peter.anvin@intel.com, ravi.v.shankar@intel.com, tony.luck@intel.com, sai.praneeth.prakhya@intel.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, hpa@zytor.com, fenghua.yu@intel.com, vikas.shivappa@linux.intel.com Reply-To: fenghua.yu@intel.com, vikas.shivappa@linux.intel.com, linux-kernel@vger.kernel.org, hpa@zytor.com, ravi.v.shankar@intel.com, tony.luck@intel.com, sai.praneeth.prakhya@intel.com, tglx@linutronix.de, mingo@kernel.org, h.peter.anvin@intel.com In-Reply-To: <1479511084-59727-1-git-send-email-fenghua.yu@intel.com> References: <1479511084-59727-1-git-send-email-fenghua.yu@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/cache] x86/intel_rdt: Fix setting of closid when adding CPUs to a group Git-Commit-ID: 2659f46da8307871989f475accdcdfc4807e9e6c X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 2659f46da8307871989f475accdcdfc4807e9e6c Gitweb: http://git.kernel.org/tip/2659f46da8307871989f475accdcdfc4807e9e6c Author: Fenghua Yu AuthorDate: Fri, 18 Nov 2016 15:18:03 -0800 Committer: Thomas Gleixner CommitDate: Mon, 28 Nov 2016 11:07:50 +0100 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 Cc: "Ravi V Shankar" Cc: "Tony Luck" Cc: "Sai Prakhya" Cc: "Vikas Shivappa" Cc: "H. Peter Anvin" Link: http://lkml.kernel.org/r/1479511084-59727-1-git-send-email-fenghua.yu@intel.com Signed-off-by: Thomas Gleixner --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c index 98edba4..eccea8a 100644 --- a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c +++ b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c @@ -278,7 +278,7 @@ static ssize_t rdtgroup_cpus_write(struct kernfs_open_file *of, continue; cpumask_andnot(&r->cpu_mask, &r->cpu_mask, tmpmask); } - rdt_update_percpu_closid(tmpmask, rdtgroup_default.closid); + rdt_update_percpu_closid(tmpmask, rdtgrp->closid); } /* Done pushing/pulling - update this group with new mask */