perf, powerpc: fsl_emb: Restore setting perf_sample_data.period
authorScott Wood <scottwood@freescale.com>
Mon, 2 Aug 2010 22:17:18 +0000 (17:17 -0500)
committerPaul Mackerras <paulus@samba.org>
Tue, 3 Aug 2010 00:56:45 +0000 (10:56 +1000)
Commit 6b95ed345b9faa4ab3598a82991968f2e9f851bb changed from
a struct initializer to perf_sample_data_init(), but the setting
of the .period member was left out.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Cc: stable@kernel.org
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/perf_event_fsl_emb.c

index fc6a89b7f08ef6b1aba566caa8c9ecf7d71e78a4..1ba45471ae436617e1ecbf3654a5064ef15d1af7 100644 (file)
@@ -569,6 +569,7 @@ static void record_and_restart(struct perf_event *event, unsigned long val,
                struct perf_sample_data data;
 
                perf_sample_data_init(&data, 0);
+               data.period = event->hw.last_period;
 
                if (perf_event_overflow(event, nmi, &data, regs)) {
                        /*