Skip to content

Commit

Permalink
perf, powerpc: fsl_emb: Restore setting perf_sample_data.period
Browse files Browse the repository at this point in the history
Commit 6b95ed3 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>
  • Loading branch information
Scott Wood authored and Paul Mackerras committed Aug 3, 2010
1 parent 09f86cd commit 69e77a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/kernel/perf_event_fsl_emb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
/*
Expand Down

0 comments on commit 69e77a8

Please sign in to comment.