Skip to content

Commit 75a9001

Browse files
Changbin DuIngo Molnar
authored andcommitted
perf/x86/intel/ds: Remove redundant assignments to sample.period
The perf_sample_data_init() has already set the period of sample, so no need to do it again. Signed-off-by: Changbin Du <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 18049c8 commit 75a9001

File tree

1 file changed

+0
-3
lines changed
  • arch/x86/events/intel

1 file changed

+0
-3
lines changed

arch/x86/events/intel/ds.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1831,8 +1831,6 @@ static void setup_pebs_fixed_sample_data(struct perf_event *event,
18311831

18321832
perf_sample_data_init(data, 0, event->hw.last_period);
18331833

1834-
data->period = event->hw.last_period;
1835-
18361834
/*
18371835
* Use latency for weight (only avail with PEBS-LL)
18381836
*/
@@ -2085,7 +2083,6 @@ static void setup_pebs_adaptive_sample_data(struct perf_event *event,
20852083
sample_type = event->attr.sample_type;
20862084
format_group = basic->format_group;
20872085
perf_sample_data_init(data, 0, event->hw.last_period);
2088-
data->period = event->hw.last_period;
20892086

20902087
setup_pebs_time(event, data, basic->tsc);
20912088

0 commit comments

Comments
 (0)