Skip to content

Commit 7578ed0

Browse files
committed
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: perf/x86: Fix raw_spin_unlock_irqrestore() usage oprofile, arm/sh: Fix oprofile_arch_exit() linkage issue
2 parents d2bac6a + 2e64694 commit 7578ed0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

arch/arm/oprofile/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
116116
return oprofile_perf_init(ops);
117117
}
118118

119-
void __exit oprofile_arch_exit(void)
119+
void oprofile_arch_exit(void)
120120
{
121121
oprofile_perf_exit();
122122
}

arch/sh/oprofile/common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
4949
return oprofile_perf_init(ops);
5050
}
5151

52-
void __exit oprofile_arch_exit(void)
52+
void oprofile_arch_exit(void)
5353
{
5454
oprofile_perf_exit();
5555
kfree(sh_pmu_op_name);
@@ -60,5 +60,5 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
6060
ops->backtrace = sh_backtrace;
6161
return -ENODEV;
6262
}
63-
void __exit oprofile_arch_exit(void) {}
63+
void oprofile_arch_exit(void) {}
6464
#endif /* CONFIG_HW_PERF_EVENTS */

arch/x86/kernel/cpu/perf_event_intel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ __intel_shared_reg_get_constraints(struct cpu_hw_events *cpuc,
11691169
*/
11701170
c = &unconstrained;
11711171
} else if (intel_try_alt_er(event, orig_idx)) {
1172-
raw_spin_unlock(&era->lock);
1172+
raw_spin_unlock_irqrestore(&era->lock, flags);
11731173
goto again;
11741174
}
11751175
raw_spin_unlock_irqrestore(&era->lock, flags);

0 commit comments

Comments
 (0)