summaryrefslogtreecommitdiff
path: root/kernel/events
diff options
context:
space:
mode:
authorZefan Li <lizefan@huawei.com>2014-09-19 08:53:14 (GMT)
committerTejun Heo <tj@kernel.org>2014-09-19 13:17:47 (GMT)
commit4e2ba65068ac1d0e8c9df78a4ad787cf39640418 (patch)
tree147901c5f3a0bd242b3696b5c2d8568791188b97 /kernel/events
parentf29374b146dd02f5f99742aedaddd6ef3512fc9c (diff)
downloadlinux-4e2ba65068ac1d0e8c9df78a4ad787cf39640418.tar.xz
perf/cgroup: Remove perf_put_cgroup()
Commit 5a17f543ed68 ("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 <lizefan@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/events')
-rw-r--r--kernel/events/core.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 1cf24b3..8be3e34 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -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;
}