diff options
author | Vikas Shivappa <vikas.shivappa@linux.intel.com> | 2017-07-25 14:14:35 -0700 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-08-01 22:41:25 +0200 |
commit | b09d981b3f346690dafa3e4ebedfcf3e44b68e83 (patch) | |
tree | 8bece327378a596dcd913595fafc52bd678f3096 /arch/x86/include/asm/intel_rdt_sched.h | |
parent | d6aaba615a482ce7d3ec218cf7b8d02d0d5753b8 (diff) | |
download | linux-stable-b09d981b3f346690dafa3e4ebedfcf3e44b68e83.tar.gz linux-stable-b09d981b3f346690dafa3e4ebedfcf3e44b68e83.tar.bz2 linux-stable-b09d981b3f346690dafa3e4ebedfcf3e44b68e83.zip |
x86/intel_rdt: Prepare to add RDT monitor cpus file support
Separate the ctrl cpus file handling from the generic cpus file handling
and convert the per cpu closid from u32 to a struct which will be used
later to add rmid to the same struct. Also cleanup some name space.
Signed-off-by: Vikas Shivappa <vikas.shivappa@linux.intel.com>
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: peterz@infradead.org
Cc: eranian@google.com
Cc: vikas.shivappa@intel.com
Cc: ak@linux.intel.com
Cc: davidcc@google.com
Cc: reinette.chatre@intel.com
Link: http://lkml.kernel.org/r/1501017287-28083-17-git-send-email-vikas.shivappa@linux.intel.com
Diffstat (limited to 'arch/x86/include/asm/intel_rdt_sched.h')
-rw-r--r-- | arch/x86/include/asm/intel_rdt_sched.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/intel_rdt_sched.h b/arch/x86/include/asm/intel_rdt_sched.h index 1d8d45a773c2..2c704d205e2f 100644 --- a/arch/x86/include/asm/intel_rdt_sched.h +++ b/arch/x86/include/asm/intel_rdt_sched.h @@ -26,7 +26,7 @@ struct intel_pqr_state { }; DECLARE_PER_CPU(struct intel_pqr_state, pqr_state); -DECLARE_PER_CPU_READ_MOSTLY(int, cpu_closid); +DECLARE_PER_CPU_READ_MOSTLY(struct intel_pqr_state, rdt_cpu_default); DECLARE_STATIC_KEY_FALSE(rdt_alloc_enable_key); /* @@ -54,7 +54,7 @@ static inline void intel_rdt_sched_in(void) */ closid = current->closid; if (closid == 0) - closid = this_cpu_read(cpu_closid); + closid = this_cpu_read(rdt_cpu_default.closid); if (closid != state->closid) { state->closid = closid; |