mirror of https://gitee.com/openkylin/linux.git
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 <tmricht@linux.ibm.com> Acked-by : Sumanth Korikkar <sumanthk@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
This commit is contained in:
parent
1eefa4f439
commit
b0583ab477
|
@ -428,8 +428,6 @@ static int cpumf_pmu_add(struct perf_event *event, int flags)
|
|||
if (flags & PERF_EF_START)
|
||||
cpumf_pmu_start(event, PERF_EF_RELOAD);
|
||||
|
||||
perf_event_update_userpage(event);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -449,8 +447,6 @@ static void cpumf_pmu_del(struct perf_event *event, int flags)
|
|||
*/
|
||||
if (!atomic_read(&cpuhw->ctr_set[event->hw.config_base]))
|
||||
ctr_set_disable(&cpuhw->state, event->hw.config_base);
|
||||
|
||||
perf_event_update_userpage(event);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue