]> asedeno.scripts.mit.edu Git - linux.git/commit
cgroup: add cgroup_parse_float()
authorTejun Heo <tj@kernel.org>
Mon, 13 May 2019 19:37:17 +0000 (12:37 -0700)
committerTejun Heo <tj@kernel.org>
Fri, 31 May 2019 18:48:40 +0000 (11:48 -0700)
commita5e112e6424adb77d953eac20e6936b952fd6b32
treef338dc9c274907e5d2321f9e7e4a8608fdb202ea
parentc03cd7738a83b13739f00546166969342c8ff014
cgroup: add cgroup_parse_float()

cgroup already uses floating point for percent[ile] numbers and there
are several controllers which want to take them as input.  Add a
generic parse helper to handle inputs.

Update the interface convention documentation about the use of
percentage numbers.  While at it, also clarify the default time unit.

Signed-off-by: Tejun Heo <tj@kernel.org>
Documentation/admin-guide/cgroup-v2.rst
include/linux/cgroup.h
kernel/cgroup/cgroup.c