OSDN Git Service

x86/intel_rdt: Modify the intel_pqr_state for better performance
authorVikas Shivappa <vikas.shivappa@linux.intel.com>
Wed, 9 Aug 2017 18:46:34 +0000 (11:46 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 14 Aug 2017 09:47:47 +0000 (11:47 +0200)
commita9110b552d44fedbd1221eb0e5bde81da32d9350
treea39373754332e059048fc04f221a6e69d7d557ce
parenteda61c265f3656be8345fdf0334b3a77829437fc
x86/intel_rdt: Modify the intel_pqr_state for better performance

Currently we have pqr_state and rdt_default_state which store the cached
CLOSID/RMIDs and the user configured cpu default values respectively. We
touch both of these during context switch. Put all of them in one
structure so that we can spare a cache line.

Reported-by: Thomas Gleixner <tglx@linutronix.de>
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: sai.praneeth.prakhya@intel.com
Cc: ak@linux.intel.com
Cc: davidcc@google.com
Link: http://lkml.kernel.org/r/1502304395-7166-3-git-send-email-vikas.shivappa@linux.intel.com
arch/x86/include/asm/intel_rdt_sched.h
arch/x86/kernel/cpu/intel_rdt.c
arch/x86/kernel/cpu/intel_rdt_rdtgroup.c