Skip to content

Commit

Permalink
perf: Remove superfluous arguments
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Dec 6, 2011
1 parent 4defea8 commit 1d9b482
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions kernel/events/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1667,8 +1667,7 @@ perf_install_in_context(struct perf_event_context *ctx,
* Note: this works for group members as well as group leaders
* since the non-leader members' sibling_lists will be empty.
*/
static void __perf_event_mark_enabled(struct perf_event *event,
struct perf_event_context *ctx)
static void __perf_event_mark_enabled(struct perf_event *event)
{
struct perf_event *sub;
u64 tstamp = perf_event_time(event);
Expand Down Expand Up @@ -1706,7 +1705,7 @@ static int __perf_event_enable(void *info)
*/
perf_cgroup_set_timestamp(current, ctx);

__perf_event_mark_enabled(event, ctx);
__perf_event_mark_enabled(event);

if (!event_filter_match(event)) {
if (is_cgroup_event(event))
Expand Down Expand Up @@ -1787,7 +1786,7 @@ void perf_event_enable(struct perf_event *event)

retry:
if (!ctx->is_active) {
__perf_event_mark_enabled(event, ctx);
__perf_event_mark_enabled(event);
goto out;
}

Expand Down Expand Up @@ -2466,7 +2465,7 @@ static int event_enable_on_exec(struct perf_event *event,
if (event->state >= PERF_EVENT_STATE_INACTIVE)
return 0;

__perf_event_mark_enabled(event, ctx);
__perf_event_mark_enabled(event);

return 1;
}
Expand Down

0 comments on commit 1d9b482

Please sign in to comment.