Skip to content

Commit 024d15b

Browse files
rchatreKAGA-KOKO
authored andcommitted
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 <reinette.chatre@intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> 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
1 parent 0b9aa65 commit 024d15b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

arch/x86/kernel/cpu/intel_rdt.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,8 @@ int rdtgroup_schemata_show(struct kernfs_open_file *of,
465465
struct seq_file *s, void *v);
466466
enum rdtgrp_mode rdtgroup_mode_by_closid(int closid);
467467
struct rdt_domain *get_domain_from_cpu(int cpu, struct rdt_resource *r);
468+
int update_domains(struct rdt_resource *r, int closid);
469+
void closid_free(int closid);
468470
int alloc_rmid(void);
469471
void free_rmid(u32 rmid);
470472
int rdt_get_mon_l3_config(struct rdt_resource *r);

arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ static int parse_line(char *line, struct rdt_resource *r)
175175
return -EINVAL;
176176
}
177177

178-
static int update_domains(struct rdt_resource *r, int closid)
178+
int update_domains(struct rdt_resource *r, int closid)
179179
{
180180
struct msr_param msr_param;
181181
cpumask_var_t cpu_mask;

arch/x86/kernel/cpu/intel_rdt_rdtgroup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static int closid_alloc(void)
121121
return closid;
122122
}
123123

124-
static void closid_free(int closid)
124+
void closid_free(int closid)
125125
{
126126
closid_free_map |= 1 << closid;
127127
}

0 commit comments

Comments
 (0)