diff options
author | Dr. David Alan Gilbert <linux@treblig.org> | 2025-01-27 23:52:14 +0000 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2025-01-28 09:00:54 -1000 |
commit | ad6c08d8c1045843ec564a73981ece6ec31d11a0 (patch) | |
tree | 920f14b7b1d4e45c1bbb18c94444ccb6b135afb5 /kernel/cgroup/misc.c | |
parent | dae68fba8e115fd84d820354f79da1481135acbd (diff) |
cgroup/misc: Remove unused misc_cg_res_total_usage
misc_cg_res_total_usage() was added in 2021 by
commit a72232eabdfc ("cgroup: Add misc cgroup controller")
but has remained unused.
Remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Acked-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup/misc.c')
-rw-r--r-- | kernel/cgroup/misc.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/kernel/cgroup/misc.c b/kernel/cgroup/misc.c index 0e26068995a6..2fa3a4fb2aaf 100644 --- a/kernel/cgroup/misc.c +++ b/kernel/cgroup/misc.c @@ -68,22 +68,6 @@ static inline bool valid_type(enum misc_res_type type) } /** - * misc_cg_res_total_usage() - Get the current total usage of the resource. - * @type: misc res type. - * - * Context: Any context. - * Return: Current total usage of the resource. - */ -u64 misc_cg_res_total_usage(enum misc_res_type type) -{ - if (valid_type(type)) - return atomic64_read(&root_cg.res[type].usage); - - return 0; -} -EXPORT_SYMBOL_GPL(misc_cg_res_total_usage); - -/** * misc_cg_set_capacity() - Set the capacity of the misc cgroup res. * @type: Type of the misc res. * @capacity: Supported capacity of the misc res on the host. |