summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/intel_rdt.h
diff options
context:
space:
mode:
authorVikas Shivappa2017-04-08 02:33:54 +0200
committerThomas Gleixner2017-04-14 16:10:08 +0200
commit6a507a6ad8a6955a7d57255377edcef576823749 (patch)
tree08f88704bc39640a2c54c9b6609470881ef75d4c /arch/x86/include/asm/intel_rdt.h
parentx86/intel_rdt/mba: Add primary support for Memory Bandwidth Allocation (MBA) (diff)
downloadkernel-qcow2-linux-6a507a6ad8a6955a7d57255377edcef576823749.tar.gz
kernel-qcow2-linux-6a507a6ad8a6955a7d57255377edcef576823749.tar.xz
kernel-qcow2-linux-6a507a6ad8a6955a7d57255377edcef576823749.zip
x86/intel_rdt: Make information files resource specific
Cache allocation and memory bandwidth allocation require different information files in the resctrl/info directory, but the current implementation does not allow to have files per resource. Add the necessary fields to the resource struct and assign the files dynamically depending on the resource type. Signed-off-by: Vikas Shivappa <vikas.shivappa@linux.intel.com> Cc: ravi.v.shankar@intel.com Cc: tony.luck@intel.com Cc: fenghua.yu@intel.com Cc: vikas.shivappa@intel.com Link: http://lkml.kernel.org/r/1491611637-20417-6-git-send-email-vikas.shivappa@linux.intel.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/include/asm/intel_rdt.h')
-rw-r--r--arch/x86/include/asm/intel_rdt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/include/asm/intel_rdt.h b/arch/x86/include/asm/intel_rdt.h
index 0620fc957e59..b0f0a600c739 100644
--- a/arch/x86/include/asm/intel_rdt.h
+++ b/arch/x86/include/asm/intel_rdt.h
@@ -150,6 +150,8 @@ struct rdt_membw {
* @data_width: Character width of data when displaying
* @domains: All domains for this resource
* @cache: Cache allocation related data
+ * @info_files: resctrl info files for the resource
+ * @nr_info_files: Number of info files
*/
struct rdt_resource {
bool enabled;
@@ -167,8 +169,12 @@ struct rdt_resource {
struct rdt_cache cache;
struct rdt_membw membw;
};
+ struct rftype *info_files;
+ int nr_info_files;
};
+void rdt_get_cache_infofile(struct rdt_resource *r);
+
extern struct mutex rdtgroup_mutex;
extern struct rdt_resource rdt_resources_all[];