x86/intel_rdt: Fix padding when resource is enabled via mount
authorVikas Shivappa <vikas.shivappa@linux.intel.com>
Wed, 19 Apr 2017 23:50:02 +0000 (16:50 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 20 Apr 2017 13:57:59 +0000 (15:57 +0200)
commitadcbdd70309dba5a12a9d8158deb6a62a6d5fc98
tree5a6c6ecaea36cd2df8501dec105966de7b3c1c0f
parenta83827d04f081b1a73845553c7f60ab9cfd13767
x86/intel_rdt: Fix padding when resource is enabled via mount

Currently max width of 'resource name' and 'resource data' is being
initialized based on 'enabled resources' during boot. But the mount can
enable different capable resources at a later time which upsets the
tabular format of schemata. Fix this to be based on 'all capable'
resources.

Signed-off-by: Vikas Shivappa <vikas.shivappa@linux.intel.com>
Tested-by: Prakhya, Sai Praneeth <sai.praneeth.prakhya@intel.com>
Cc: fenghua.yu@intel.com
Cc: tony.luck@intel.com
Cc: ravi.v.shankar@intel.com
Cc: vikas.shivappa@intel.com
Link: http://lkml.kernel.org/r/1492645804-17465-2-git-send-email-vikas.shivappa@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/intel_rdt.c