aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/kernel')
-rw-r--r--arch/sparc/kernel/perf_event.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/kernel/perf_event.c b/arch/sparc/kernel/perf_event.c
index 34ce49f80eac..2e1698332b6d 100644
--- a/arch/sparc/kernel/perf_event.c
+++ b/arch/sparc/kernel/perf_event.c
@@ -655,6 +655,7 @@ static u64 maybe_change_configuration(struct cpu_hw_events *cpuc, u64 pcr)
655 cpuc->current_idx[i] = idx; 655 cpuc->current_idx[i] = idx;
656 656
657 enc = perf_event_get_enc(cpuc->events[i]); 657 enc = perf_event_get_enc(cpuc->events[i]);
658 pcr &= ~mask_for_index(idx);
658 pcr |= event_encoding(enc, idx); 659 pcr |= event_encoding(enc, idx);
659 } 660 }
660out: 661out: