diff options
author | Scott Wood <scottwood@freescale.com> | 2010-08-02 17:17:18 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2010-08-03 10:56:45 +1000 |
commit | 69e77a8b0426ded5d924eea7dbe4eca51e09f530 (patch) | |
tree | 70173eaa6109e2ce6dc4196442743ea71afb923a /arch/powerpc | |
parent | 09f86cd093b76b699656eaa82c37ca6d9a02b892 (diff) |
perf, powerpc: fsl_emb: Restore setting perf_sample_data.period
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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kernel/perf_event_fsl_emb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/perf_event_fsl_emb.c b/arch/powerpc/kernel/perf_event_fsl_emb.c index fc6a89b7f08e..1ba45471ae43 100644 --- a/arch/powerpc/kernel/perf_event_fsl_emb.c +++ b/arch/powerpc/kernel/perf_event_fsl_emb.c @@ -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)) { /* |