x86/intel_rdt: Init padding only if a device exists
authorThomas Gleixner <tglx@linutronix.de>
Fri, 14 Apr 2017 12:06:26 +0000 (14:06 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 14 Apr 2017 14:10:06 +0000 (16:10 +0200)
commit06b57e4550d400c2e7dcafbde6fdb1fcb6fcdcee
tree1e9ad858269cb886611e3cce066fe6faede18d76
parentb6466d53afdb0c3ca058848cd4c12e141aba0763
x86/intel_rdt: Init padding only if a device exists

If no device exists it's pointless to calculate the padding data for the
schemata files.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: ravi.v.shankar@intel.com
Cc: tony.luck@intel.com
Cc: fenghua.yu@intel.com
Cc: vikas.shivappa@intel.com
arch/x86/kernel/cpu/intel_rdt.c