mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull perf fixes from Thomas Gleixner:
"Three fixlets for perf:
- add a missing NULL pointer check in the intel BTS driver
- make BTS an exclusive PMU because BTS can only handle one event at
a time
- ensure that exclusive events are limited to one PMU so that several
exclusive events can be scheduled on different PMU instances"
* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
perf/core: Limit matching exclusive events to one PMU
perf/x86/intel/bts: Make it an exclusive PMU
perf/x86/intel/bts: Make sure debug store is valid
This commit is contained in:
commit
9c0e28a7be
2 changed files with 4 additions and 3 deletions
|
|
@ -3929,7 +3929,7 @@ static void exclusive_event_destroy(struct perf_event *event)
|
|||
|
||||
static bool exclusive_event_match(struct perf_event *e1, struct perf_event *e2)
|
||||
{
|
||||
if ((e1->pmu->capabilities & PERF_PMU_CAP_EXCLUSIVE) &&
|
||||
if ((e1->pmu == e2->pmu) &&
|
||||
(e1->cpu == e2->cpu ||
|
||||
e1->cpu == -1 ||
|
||||
e2->cpu == -1))
|
||||
|
|
|
|||
Loading…
Reference in a new issue