]> asedeno.scripts.mit.edu Git - linux.git/commit
x86/intel_rdt: Utilities to restrict/restore access to specific files
authorReinette Chatre <reinette.chatre@intel.com>
Fri, 22 Jun 2018 22:42:13 +0000 (15:42 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 23 Jun 2018 11:03:46 +0000 (13:03 +0200)
commit2a5d76a4fc6469ea9dd6f02fcd4dad3a129bc1c0
treea75c06f2fc976862a7e125c7c9a96df07864d82a
parentc966dac8a5ede5d5f9b730512d8bdbcec307fe38
x86/intel_rdt: Utilities to restrict/restore access to specific files

In support of Cache Pseudo-Locking we need to restrict access to specific
resctrl files to protect the state of a resource group used for
pseudo-locking from being changed in unsupported ways.

Introduce two utilities that can be used to either restrict or restore the
access to all files irrelevant to cache pseudo-locking when pseudo-locking
in progress for the resource group.

At this time introduce a new source file, intel_rdt_pseudo_lock.c, that
will contain most of the code related to cache pseudo-locking.

Temporarily mark these new functions as unused to silence compile warnings
until they are used.

Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: fenghua.yu@intel.com
Cc: tony.luck@intel.com
Cc: vikas.shivappa@linux.intel.com
Cc: gavin.hindman@intel.com
Cc: jithu.joseph@intel.com
Cc: dave.hansen@intel.com
Cc: hpa@zytor.com
Link: https://lkml.kernel.org/r/ab6319d1244366be3f9b7f9fba1c3da4810a274b.1529706536.git.reinette.chatre@intel.com
arch/x86/kernel/cpu/Makefile
arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c [new file with mode: 0644]