Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334426
b: refs/heads/master
c: e793d8c
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Oct 16, 2012
1 parent 5f57760 commit 6145e35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 916ca14aaf12a7191118adb51bb95e3c7866380d
refs/heads/master: e793d8c6740f8fe704fa216e95685f4d92c4c4b9
6 changes: 4 additions & 2 deletions trunk/arch/sparc/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,15 +817,17 @@ static u64 nop_for_index(int idx)

static inline void sparc_pmu_enable_event(struct cpu_hw_events *cpuc, struct hw_perf_event *hwc, int idx)
{
u64 val, mask = mask_for_index(idx);
u64 enc, val, mask = mask_for_index(idx);
int pcr_index = 0;

if (sparc_pmu->num_pcrs > 1)
pcr_index = idx;

enc = perf_event_get_enc(cpuc->events[idx]);

val = cpuc->pcr[pcr_index];
val &= ~mask;
val |= hwc->config;
val |= event_encoding(enc, idx);
cpuc->pcr[pcr_index] = val;

pcr_ops->write_pcr(pcr_index, cpuc->pcr[pcr_index]);
Expand Down

0 comments on commit 6145e35

Please sign in to comment.