Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp118358imm; Tue, 19 Jun 2018 17:16:52 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK8JbILPwe2X5/AXj8+JzL/Dpk1+z80qHZ4WyFMb0I4zBMImFd01XHffcs9raIcoBW8dVl7 X-Received: by 2002:a63:4701:: with SMTP id u1-v6mr16849721pga.34.1529453812549; Tue, 19 Jun 2018 17:16:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529453812; cv=none; d=google.com; s=arc-20160816; b=cOKA0X9hor0+6H4iP6q3apUhX0w89fVOLeQb9pK8Y/DVDfGjKf9qzMxUst5FxB/kZv erOkkMlF+sf5Y4ndM7iSGCXrOiX87+T0hHFZafJ766c2umHm/8cm5DnOL9RkGt1J34JL hpVv6mE3eyPvcpx3kXl0+GPX2wVQ9bpscOKLTF+kfAYzAJfF6Ru9KtwJ1tdhQc8mhied ahJW6dXiZOVkF8+I5eUnvs71jAeDrwtkACDp6fpHV5VAF+MyrrHRxL8UfVFvA2USnUn0 c0eVYgI1+80gh4M2DFfXsbwONcFsO+d5lXdAiWE/vi02DdHA/Cg6vBbD7ZTv5i2ivzCp Ur1Q== 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=09b0CBU7v4y9AxlklS1D8wVwNl9eyBdXee5sbrFV1EM=; b=SuqW19tdKFaBA4RnS1dnomjjde4jsAuZ30sLQlCEJ8IblHkYyzruPBxGGbTurcelni Lly3Gbyak8hvaENePVtFduuHzAX4TgMhbURpbj/sZbGFS/dKYf41R4mDsJ5w1oNAQesx KN7gq4tFy3cz6pcnB47NDFz4ePd/jhZ4Y+p86Q0NQMMf3kztEL2CsrchAF2XcLmAkcS4 KkrBOVHR/OnGNTACyg/Oho/fYEgZ8xdHeETMedmIAXjsq1a8hFfIqkbuk5pCcnwgJvK0 V1XtABkRK65CZJdIq3qaO9DHC6ChOCM+0B7+qPiOBEO8x8gU7aUYpB9/BhLsdXpEPgUi jjeg== 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 u5-v6si844182pfn.339.2018.06.19.17.16.38; Tue, 19 Jun 2018 17:16:52 -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 S1754018AbeFTAPy (ORCPT + 99 others); Tue, 19 Jun 2018 20:15:54 -0400 Received: from terminus.zytor.com ([198.137.202.136]:53525 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752861AbeFTAPv (ORCPT ); Tue, 19 Jun 2018 20:15:51 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w5K0Fk083296550 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 19 Jun 2018 17:15:46 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w5K0FkI73296547; Tue, 19 Jun 2018 17:15:46 -0700 Date: Tue, 19 Jun 2018 17:15:46 -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: reinette.chatre@intel.com, mingo@kernel.org, tglx@linutronix.de, hpa@zytor.com, linux-kernel@vger.kernel.org Reply-To: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de, reinette.chatre@intel.com In-Reply-To: <2d44c94263cb89b04a4c01e6d59c8b3357208e9d.1527593970.git.reinette.chatre@intel.com> References: <2d44c94263cb89b04a4c01e6d59c8b3357208e9d.1527593970.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: c96f83bf49cc9efa568ff74f901554542b23d900 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, T_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: c96f83bf49cc9efa568ff74f901554542b23d900 Gitweb: https://git.kernel.org/tip/c96f83bf49cc9efa568ff74f901554542b23d900 Author: Reinette Chatre AuthorDate: Tue, 29 May 2018 05:57:31 -0700 Committer: Thomas Gleixner CommitDate: Wed, 20 Jun 2018 00:56:28 +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/2d44c94263cb89b04a4c01e6d59c8b3357208e9d.1527593970.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 7ff1f633bebe..5f3915c2e599 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 fdc55357251b..35e538eed977 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; }