Prev: [PATCH 01/11] perf, x86: Fix Nehalem PMU quirk
Next: [RFC][PATCH 04/11] perf: deconstify struct pmu
From: Peter Zijlstra on 24 Jun 2010 10:40 From: David S. Miller <davem(a)davemloft.net> Need to mask out the existing event bits before OR'ing in the new ones. Reported-by: Peter Zijlstra <a.p.zijlstra(a)chello.nl> Signed-off-by: David S. Miller <davem(a)davemloft.net> Signed-off-by: Peter Zijlstra <a.p.zijlstra(a)chello.nl> --- arch/sparc/kernel/perf_event.c | 1 + 1 file changed, 1 insertion(+) Index: linux-2.6/arch/sparc/kernel/perf_event.c =================================================================== --- linux-2.6.orig/arch/sparc/kernel/perf_event.c +++ linux-2.6/arch/sparc/kernel/perf_event.c @@ -657,6 +657,7 @@ static u64 maybe_change_configuration(st cpuc->current_idx[i] = idx; enc = perf_event_get_enc(cpuc->events[i]); + pcr &= ~mask_for_index(idx); pcr |= event_encoding(enc, idx); } out: -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|
Pages: 1 Prev: [PATCH 01/11] perf, x86: Fix Nehalem PMU quirk Next: [RFC][PATCH 04/11] perf: deconstify struct pmu |