perf/cgroup: Remove perf_put_cgroup()
authorZefan Li <lizefan@huawei.com>
Fri, 19 Sep 2014 08:53:14 +0000 (16:53 +0800)
committerTejun Heo <tj@kernel.org>
Fri, 19 Sep 2014 13:17:47 +0000 (09:17 -0400)
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>
kernel/events/core.c

index 1cf24b3e42ece4f2de8854bd882f127165866af6..8be3e34274b9116871b6359ca82e412f1a192b06 100644 (file)
@@ -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;
 }