Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232296
b: refs/heads/master
c: 547e9fd
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Jan 21, 2011
1 parent 8f7a903 commit 9221678
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8c8a9b25b5de3f1eeac721cf34f4379e56d5d694
refs/heads/master: 547e9fd7d328af261f184bf66effc5033c886498
3 changes: 3 additions & 0 deletions trunk/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -5380,6 +5380,8 @@ static int pmu_dev_alloc(struct pmu *pmu)
goto out;
}

static struct lock_class_key cpuctx_mutex;

int perf_pmu_register(struct pmu *pmu, char *name, int type)
{
int cpu, ret;
Expand Down Expand Up @@ -5428,6 +5430,7 @@ int perf_pmu_register(struct pmu *pmu, char *name, int type)

cpuctx = per_cpu_ptr(pmu->pmu_cpu_context, cpu);
__perf_event_init_context(&cpuctx->ctx);
lockdep_set_class(&cpuctx->ctx.mutex, &cpuctx_mutex);
cpuctx->ctx.type = cpu_context;
cpuctx->ctx.pmu = pmu;
cpuctx->jiffies_interval = 1;
Expand Down

0 comments on commit 9221678

Please sign in to comment.