提交 69e77a8b 编写于 作者: S Scott Wood 提交者: 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: NScott Wood <scottwood@freescale.com>
Cc: stable@kernel.org
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 09f86cd0
...@@ -569,6 +569,7 @@ static void record_and_restart(struct perf_event *event, unsigned long val, ...@@ -569,6 +569,7 @@ static void record_and_restart(struct perf_event *event, unsigned long val,
struct perf_sample_data data; struct perf_sample_data data;
perf_sample_data_init(&data, 0); perf_sample_data_init(&data, 0);
data.period = event->hw.last_period;
if (perf_event_overflow(event, nmi, &data, regs)) { if (perf_event_overflow(event, nmi, &data, regs)) {
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册