x86/intel_rdt: Add diagnostics when writing the cpus file
authorTony Luck <tony.luck@intel.com>
Mon, 25 Sep 2017 23:39:36 +0000 (16:39 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 27 Sep 2017 10:10:11 +0000 (12:10 +0200)
commit94457b36e8a5026443707b48dcf54b204e098fd7
treec38bfea717609100d5c1965ea0b973e6f0d258b5
parent29e74f35b2fed0ca3e8b31db157e1d183e9d0819
x86/intel_rdt: Add diagnostics when writing the cpus file

Can't add a cpu to a monitor group unless it belongs to parent
group. Can't delete cpus from the default group.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Vikas Shivappa <vikas.shivappa@intel.com>
Cc: Boris Petkov <bp@suse.de>
Cc: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lkml.kernel.org/r/757a869a25e9fc1b7a2e9bc43e1159455c1964a0.1506382469.git.tony.luck@intel.com
arch/x86/kernel/cpu/intel_rdt_rdtgroup.c