projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6466d5
)
x86/intel_rdt: Init padding only if a device exists
author
Thomas Gleixner
<tglx@linutronix.de>
Fri, 14 Apr 2017 12:06:26 +0000
(14:06 +0200)
committer
Thomas Gleixner
<tglx@linutronix.de>
Fri, 14 Apr 2017 14:10:06 +0000
(16:10 +0200)
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
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/cpu/intel_rdt.c
b/arch/x86/kernel/cpu/intel_rdt.c
index 70a3307fd592b69d46c1006df641d292c9c65910..2802cad0371d4faf5d3f22a97e42c8f0b3537ea0 100644
(file)
--- a/
arch/x86/kernel/cpu/intel_rdt.c
+++ b/
arch/x86/kernel/cpu/intel_rdt.c
@@
-212,8
+212,6
@@
static inline bool get_rdt_resources(void)
ret = true;
}
- rdt_init_padding();
-
return ret;
}
@@
-410,6
+408,8
@@
static int __init intel_rdt_late_init(void)
if (!get_rdt_resources())
return -ENODEV;
+ rdt_init_padding();
+
state = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN,
"x86/rdt/cat:online:",
intel_rdt_online_cpu, intel_rdt_offline_cpu);