diff options
author | Tejun Heo <tj@kernel.org> | 2018-04-27 00:29:05 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2018-04-27 00:29:05 +0300 |
commit | 6162cef0f741c70eb0c7ac7e6142f85808d8abc4 (patch) | |
tree | 355935993063eb4aa28ff6e8491d40380a83db7f /kernel/cgroup/cgroup-internal.h | |
parent | a17556f8d9798e8feff9e34d746e489e78ee1dab (diff) | |
download | linux-6162cef0f741c70eb0c7ac7e6142f85808d8abc4.tar.xz |
cgroup: Factor out and expose cgroup_rstat_*() interface functions
cgroup_rstat is being generalized so that controllers can use it too.
This patch factors out and exposes the following interface functions.
* cgroup_rstat_updated(): Renamed from cgroup_rstat_cpu_updated() for
consistency.
* cgroup_rstat_flush_hold/release(): Factored out from base stat
implementation.
* cgroup_rstat_flush(): Verbatim expose.
While at it, drop assert on cgroup_rstat_mutex in
cgroup_base_stat_flush() as it crosses layers and make a minor comment
update.
v2: Added EXPORT_SYMBOL_GPL(cgroup_rstat_updated) to fix a build bug.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup/cgroup-internal.h')
-rw-r--r-- | kernel/cgroup/cgroup-internal.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/cgroup/cgroup-internal.h b/kernel/cgroup/cgroup-internal.h index 2bf6fb417588..b68e1a7c146c 100644 --- a/kernel/cgroup/cgroup-internal.h +++ b/kernel/cgroup/cgroup-internal.h @@ -203,7 +203,6 @@ int cgroup_task_count(const struct cgroup *cgrp); /* * rstat.c */ -void cgroup_rstat_flush(struct cgroup *cgrp); int cgroup_rstat_init(struct cgroup *cgrp); void cgroup_rstat_exit(struct cgroup *cgrp); void cgroup_rstat_boot(void); |