diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2017-04-14 14:00:36 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-04-14 17:10:07 +0300 |
commit | d3e11b4d6ffd363747ac6e6b5522baa9ca5a20c0 (patch) | |
tree | dbea1fcf4b240ba745c51e233e23000f322160ea /arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | |
parent | 2545e9f51ea860736c4dc1e90a44ed75e9c91e3b (diff) | |
download | linux-d3e11b4d6ffd363747ac6e6b5522baa9ca5a20c0.tar.xz |
x86/intel_rdt: Move CBM specific data into a struct
Memory bandwidth allocation requires different information than cache
allocation.
To avoid a lump of data in struct rdt_resource, move all cache related
information into a seperate structure and add that to struct rdt_resource.
Sanitize the data types while at it.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: ravi.v.shankar@intel.com
Cc: tony.luck@intel.com
Cc: fenghua.yu@intel.com
Cc: vikas.shivappa@intel.com
Diffstat (limited to 'arch/x86/kernel/cpu/intel_rdt_rdtgroup.c')
-rw-r--r-- | arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c index 380ee9d8ee6f..3ec230baab91 100644 --- a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c +++ b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c @@ -534,7 +534,7 @@ static int rdt_min_cbm_bits_show(struct kernfs_open_file *of, { struct rdt_resource *r = of->kn->parent->priv; - seq_printf(seq, "%d\n", r->min_cbm_bits); + seq_printf(seq, "%u\n", r->cache.min_cbm_bits); return 0; } |