Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1899383imm; Sat, 23 Jun 2018 05:13:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL5dpkrs5YsDDo3hcSeSc7KgKl3KmLkKKupT7J/jmbuT3U9HNp7lM4Mk/kGgTmHKTIM2JND X-Received: by 2002:a62:ac14:: with SMTP id v20-v6mr5569322pfe.126.1529755982589; Sat, 23 Jun 2018 05:13:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529755982; cv=none; d=google.com; s=arc-20160816; b=s/YpNMwqYBTeP/cO5R7ojZarulPVVvD1/P+uJ721YapoH7UHdraIf9TkMk46jt+vZ4 beEcEUSxHwDgtdzRvqGoxSgG0lieTn6PLXvXf4mT8P8542YRKaHzRA1HFSfY/mpZe3bW NG0ycb/e3GjO9EtPWYELkHuLm665unv7n1EC6VS/ccorrh6I9VRpIGUNrxueCoUfZJFw 75sWwRsqLt8RZU4NglW20eMS9pGRXGFn9MFR4hbi5UyYYrYQFERjqEF+fegSLX8o/U0k c8axi23MDMMAEd1Vd8Mpq2maUxB3zBvDUj2Xz5zyFRE+6eRdOjxSAx2G/mzkQLKTAp3V x02w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=oxcVnsKkuGIq9BlSTdfjH4rnENXrthUf1Yer9ZlBqDA=; b=0K1v/cRlsRT3Q8zNMTIUw5ai/N+G3RheyOUk3uOSTaIVC2NtAa2PRQuh4qe79IZbST htJJ8QmaId9txCOJdwCMUTCTb7VZahZy0dbo4ffY4LOv2Y5orJgpY9e+8uJgKU46ZrgZ lWpAEOPoemoQXGbC/8g0O7jsg97noH3qjP0w+dhIsFZP6uxuyn03UUiTao8fs4mmX7dc WpSUWmUo2malhhQHMV+naoDRyEq/RlzgIyR5X90kohYq5f449dIHM3RaX/LB1CXOGlJd 9ilaY++lMHorX65koVir5v45T3wS69wctJe/xp+ETqjqjK0sR6fg7jEBD4uZzVK/CngV 9Faw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p3-v6si9602604plr.131.2018.06.23.05.12.48; Sat, 23 Jun 2018 05:13:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752057AbeFWMK2 (ORCPT + 99 others); Sat, 23 Jun 2018 08:10:28 -0400 Received: from terminus.zytor.com ([198.137.202.136]:54161 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751442AbeFWMK0 (ORCPT ); Sat, 23 Jun 2018 08:10:26 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w5NCAMoD463577 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 23 Jun 2018 05:10:22 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w5NCAM0m463573; Sat, 23 Jun 2018 05:10:22 -0700 Date: Sat, 23 Jun 2018 05:10:22 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Reinette Chatre Message-ID: Cc: tglx@linutronix.de, reinette.chatre@intel.com, linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org Reply-To: tglx@linutronix.de, mingo@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org, reinette.chatre@intel.com In-Reply-To: <2af8fd6e937ae4fbdaa52dee1123823cb4993176.1529706536.git.reinette.chatre@intel.com> References: <2af8fd6e937ae4fbdaa52dee1123823cb4993176.1529706536.git.reinette.chatre@intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/cache] x86/intel_rdt: Make useful functions available internally Git-Commit-ID: 024d15be3855044faa8bddf829e3613961fd27ba 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 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 024d15be3855044faa8bddf829e3613961fd27ba Gitweb: https://git.kernel.org/tip/024d15be3855044faa8bddf829e3613961fd27ba Author: Reinette Chatre AuthorDate: Fri, 22 Jun 2018 15:41:58 -0700 Committer: Thomas Gleixner CommitDate: Sat, 23 Jun 2018 13:03:42 +0200 x86/intel_rdt: Make useful functions available internally In support of the work done to enable resource groups to have different modes some static functions need to be available for sharing amongst all RDT components. Signed-off-by: Reinette Chatre Signed-off-by: Thomas Gleixner Cc: fenghua.yu@intel.com Cc: tony.luck@intel.com Cc: vikas.shivappa@linux.intel.com Cc: gavin.hindman@intel.com Cc: jithu.joseph@intel.com Cc: dave.hansen@intel.com Cc: hpa@zytor.com Link: https://lkml.kernel.org/r/2af8fd6e937ae4fbdaa52dee1123823cb4993176.1529706536.git.reinette.chatre@intel.com --- arch/x86/kernel/cpu/intel_rdt.h | 2 ++ arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 2 +- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt.h b/arch/x86/kernel/cpu/intel_rdt.h index 482dd6d3b8c5..f2fbf4059b3f 100644 --- a/arch/x86/kernel/cpu/intel_rdt.h +++ b/arch/x86/kernel/cpu/intel_rdt.h @@ -465,6 +465,8 @@ int rdtgroup_schemata_show(struct kernfs_open_file *of, struct seq_file *s, void *v); enum rdtgrp_mode rdtgroup_mode_by_closid(int closid); struct rdt_domain *get_domain_from_cpu(int cpu, struct rdt_resource *r); +int update_domains(struct rdt_resource *r, int closid); +void closid_free(int closid); int alloc_rmid(void); void free_rmid(u32 rmid); int rdt_get_mon_l3_config(struct rdt_resource *r); diff --git a/arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c b/arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c index 116d57b248d3..2c23bb136ccc 100644 --- a/arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c +++ b/arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c @@ -175,7 +175,7 @@ next: return -EINVAL; } -static int update_domains(struct rdt_resource *r, int closid) +int update_domains(struct rdt_resource *r, int closid) { struct msr_param msr_param; cpumask_var_t cpu_mask; diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c index 659b643fcf94..04ef140ebc84 100644 --- a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c +++ b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c @@ -121,7 +121,7 @@ static int closid_alloc(void) return closid; } -static void closid_free(int closid) +void closid_free(int closid) { closid_free_map |= 1 << closid; }