x86/intel_rdt: Implement "update" mode when writing schemata file
authorTony Luck <tony.luck@intel.com>
Mon, 3 Apr 2017 21:44:16 +0000 (14:44 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 5 Apr 2017 15:22:31 +0000 (17:22 +0200)
commitc4026b7b95a4b852e404afa2cd7720866159d118
tree60089e1fd1ad26b24d915b9e1d82b06092e69ee4
parent6415813bae75feba10b8ca3ed6634a72c2a4d313
x86/intel_rdt: Implement "update" mode when writing schemata file

The schemata file can have multiple lines and it is cumbersome to update
all lines.

Remove code that requires that the user provides values for every resource
(in the right order).  If the user provides values for just a few
resources, update them and leave the rest unchanged.

Side benefit: we now check which values were updated and only send IPIs to
cpus that actually have updates.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Vikas Shivappa <vikas.shivappa@linux.intel.com>
Tested-by: Sai Praneeth Prakhya <sai.praneeth.prakhya@intel.com>
Cc: ravi.v.shankar@intel.com
Cc: fenghua.yu@intel.com
Cc: peterz@infradead.org
Cc: vikas.shivappa@intel.com
Cc: h.peter.anvin@intel.com
Link: http://lkml.kernel.org/r/1491255857-17213-3-git-send-email-vikas.shivappa@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Documentation/x86/intel_rdt_ui.txt
arch/x86/include/asm/intel_rdt.h
arch/x86/kernel/cpu/intel_rdt.c
arch/x86/kernel/cpu/intel_rdt_schemata.c