projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'dt-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux-2.6-microblaze.git]
/
arch
/
x86
/
events
/
intel
/
pt.c
diff --git
a/arch/x86/events/intel/pt.c
b/arch/x86/events/intel/pt.c
index
b044577
..
7f406c1
100644
(file)
--- a/
arch/x86/events/intel/pt.c
+++ b/
arch/x86/events/intel/pt.c
@@
-1708,7
+1708,7
@@
static __init int pt_init(void)
if (!boot_cpu_has(X86_FEATURE_INTEL_PT))
return -ENODEV;
if (!boot_cpu_has(X86_FEATURE_INTEL_PT))
return -ENODEV;
-
get_online_cpus
();
+
cpus_read_lock
();
for_each_online_cpu(cpu) {
u64 ctl;
for_each_online_cpu(cpu) {
u64 ctl;
@@
-1716,7
+1716,7
@@
static __init int pt_init(void)
if (!ret && (ctl & RTIT_CTL_TRACEEN))
prior_warn++;
}
if (!ret && (ctl & RTIT_CTL_TRACEEN))
prior_warn++;
}
-
put_online_cpus
();
+
cpus_read_unlock
();
if (prior_warn) {
x86_add_exclusive(x86_lbr_exclusive_pt);
if (prior_warn) {
x86_add_exclusive(x86_lbr_exclusive_pt);