Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181959
b: refs/heads/master
c: 071c06c
h: refs/heads/master
i:
  181957: 19abd7b
  181955: d20d2a2
  181951: b53a0c8
v: v3
  • Loading branch information
Thomas Gleixner authored and Benjamin Herrenschmidt committed Feb 19, 2010
1 parent 10bc659 commit a647106
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b8f87782e82709d613c5d2a165d1443478e57c00
refs/heads/master: 071c06cb570d38efe23a124e885f2f3e643a9206
10 changes: 5 additions & 5 deletions trunk/arch/powerpc/kernel/pmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ static void dummy_perf(struct pt_regs *regs)
}


static DEFINE_SPINLOCK(pmc_owner_lock);
static DEFINE_RAW_SPINLOCK(pmc_owner_lock);
static void *pmc_owner_caller; /* mostly for debugging */
perf_irq_t perf_irq = dummy_perf;

int reserve_pmc_hardware(perf_irq_t new_perf_irq)
{
int err = 0;

spin_lock(&pmc_owner_lock);
raw_spin_lock(&pmc_owner_lock);

if (pmc_owner_caller) {
printk(KERN_WARNING "reserve_pmc_hardware: "
Expand All @@ -59,21 +59,21 @@ int reserve_pmc_hardware(perf_irq_t new_perf_irq)
perf_irq = new_perf_irq ? new_perf_irq : dummy_perf;

out:
spin_unlock(&pmc_owner_lock);
raw_spin_unlock(&pmc_owner_lock);
return err;
}
EXPORT_SYMBOL_GPL(reserve_pmc_hardware);

void release_pmc_hardware(void)
{
spin_lock(&pmc_owner_lock);
raw_spin_lock(&pmc_owner_lock);

WARN_ON(! pmc_owner_caller);

pmc_owner_caller = NULL;
perf_irq = dummy_perf;

spin_unlock(&pmc_owner_lock);
raw_spin_unlock(&pmc_owner_lock);
}
EXPORT_SYMBOL_GPL(release_pmc_hardware);

Expand Down

0 comments on commit a647106

Please sign in to comment.