diff options
author | 2020-03-30 20:30:45 +0200 | |
---|---|---|
committer | 2020-04-14 15:49:10 +0200 | |
commit | 6458de97fc15530b54477c4e2b70af653e8ac3d9 (patch) | |
tree | 5d52abf29479cdcbcb2b649d35712124292d130b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | x86/mce/amd: Sanitize thresholding device creation hotplug path (diff) | |
download | linux-dev-6458de97fc15530b54477c4e2b70af653e8ac3d9.tar.xz linux-dev-6458de97fc15530b54477c4e2b70af653e8ac3d9.zip |
x86/mce/amd: Straighten CPU hotplug path
mce_threshold_create_device() hotplug callback runs on the plugged in
CPU so:
- use this_cpu_read() which is faster
- pass in struct threshold_bank **bp to threshold_create_bank() and
instead of doing per-CPU accesses
- Use rdmsr_safe() instead of rdmsr_safe_on_cpu() which avoids an IPI.
No functional changes.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200403161943.1458-6-bp@alien8.de
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions