Skip to content

Commit b0583ab

Browse files
Thomas Richterhcahca
authored andcommitted
s390/cpumf: remove call to perf_event_update_userpage
The function cpumf_pmu_add and cpumf_pmu_del call function perf_event_update_userpage(). This calls is obsolete, the calls add and delete a counter event. Counter events do not sample data and the event->rb member to access the sampling ring buffer is always NULL. The function perf_event_update_userpage() simply returns in this case. Signed-off-by: Thomas Richter <[email protected]> Acked-by : Sumanth Korikkar <[email protected]> Signed-off-by: Heiko Carstens <[email protected]>
1 parent 1eefa4f commit b0583ab

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

arch/s390/kernel/perf_cpum_cf.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,6 @@ static int cpumf_pmu_add(struct perf_event *event, int flags)
428428
if (flags & PERF_EF_START)
429429
cpumf_pmu_start(event, PERF_EF_RELOAD);
430430

431-
perf_event_update_userpage(event);
432-
433431
return 0;
434432
}
435433

@@ -449,8 +447,6 @@ static void cpumf_pmu_del(struct perf_event *event, int flags)
449447
*/
450448
if (!atomic_read(&cpuhw->ctr_set[event->hw.config_base]))
451449
ctr_set_disable(&cpuhw->state, event->hw.config_base);
452-
453-
perf_event_update_userpage(event);
454450
}
455451

456452
/*

0 commit comments

Comments
 (0)