Skip to content

Commit

Permalink
perf/cgroup: Remove perf_put_cgroup()
Browse files Browse the repository at this point in the history
Commit 5a17f54 ("cgroup: improve css_from_dir() into css_tryget_from_dir()")
removed perf_tryget_cgroup(), so let's also remove perf_put_cgroup().

Signed-off-by: Zefan Li <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
  • Loading branch information
lizf-os authored and htejun committed Sep 19, 2014
1 parent f29374b commit 4e2ba65
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions kernel/events/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,14 +391,9 @@ perf_cgroup_match(struct perf_event *event)
event->cgrp->css.cgroup);
}

static inline void perf_put_cgroup(struct perf_event *event)
{
css_put(&event->cgrp->css);
}

static inline void perf_detach_cgroup(struct perf_event *event)
{
perf_put_cgroup(event);
css_put(&event->cgrp->css);
event->cgrp = NULL;
}

Expand Down

0 comments on commit 4e2ba65

Please sign in to comment.