Thread (4 messages) 4 messages, 3 authors, 2011-01-18

Re: [PATCH] powerpc: perf: Fix frequency calculation for overflowing counters

flat view

From: Peter Zijlstra <hidden>
Date: 2011-01-17 17:37:54
Also in: lkml

On Mon, 2011-01-17 at 11:32 -0600, Scott Wood wrote:
quoted
diff --git a/arch/powerpc/kernel/perf_event.c b/arch/powerpc/kernel/per=
f_event.c
quoted
index 5674807..ab6f6be 100644
--- a/arch/powerpc/kernel/perf_event.c
+++ b/arch/powerpc/kernel/perf_event.c
@@ -1212,6 +1212,7 @@ static void record_and_restart(struct perf_event =
*event, unsigned long val,
quoted
                      if (left <=3D 0)
                              left =3D period;
                      record =3D 1;
+                     event->hw.last_period =3D event->hw.sample_period=
;
quoted
              }
              if (left < 0x80000000LL)
                      val =3D 0x80000000LL - left;
Does perf_event_fsl_emb.c need this as well (it has almost the same
record_and_restart code)?=20
I would think so.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help