Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)) {
			/*