perf, powerpc: fsl_emb: Restore setting perf_sample_data.period
Commit 6b95ed345b
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>
This commit is contained in:
parent
09f86cd093
commit
69e77a8b04
|
@ -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)) {
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue