Commit 69e77a8b authored by Scott Wood's avatar Scott Wood Committed by Paul Mackerras

perf, powerpc: fsl_emb: Restore setting perf_sample_data.period

Commit 6b95ed34 changed from
a struct initializer to perf_sample_data_init(), but the setting
of the .period member was left out.
Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
Cc: stable@kernel.org
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 09f86cd0
......@@ -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)) {
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment