OSDN Git Service

x86/intel_rdt: Introduce test to determine if closid is in use
authorReinette Chatre <reinette.chatre@intel.com>
Fri, 22 Jun 2018 22:41:57 +0000 (15:41 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 23 Jun 2018 11:03:41 +0000 (13:03 +0200)
commit0b9aa6562650f42da23c29814adc2318c135cef4
tree07f6d8dda1f959c523d64b75544e840f977780fe
parentd48d7a57f7181b36be748ad8fb806e8de3104e89
x86/intel_rdt: Introduce test to determine if closid is in use

During CAT feature discovery the capacity bitmasks (CBMs) associated
with all the classes of service are initialized to all ones, even if the
class of service is not in use. Introduce a test that can be used to
determine if a class of service is in use. This test enables code
interested in parsing the CBMs to know if its values are meaningful or
can be ignored.

Temporarily mark the function as unused to silence compile warnings
until it is 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/798f8d89cd9b12df492d48c14bdc8ee3b39b1c6f.1529706536.git.reinette.chatre@intel.com
arch/x86/kernel/cpu/intel_rdt_rdtgroup.c