Home
last modified time | relevance | path

Searched refs:dec_shift (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/include/linux/
H A Dcgroup.h139 int cgroup_parse_float(const char *input, unsigned dec_shift, s64 *v);
/openbmc/linux/kernel/cgroup/
H A Dcgroup.c6912 int cgroup_parse_float(const char *input, unsigned dec_shift, s64 *v) in cgroup_parse_float() argument
6923 if (flen < dec_shift) in cgroup_parse_float()
6924 frac *= power_of_ten(dec_shift - flen); in cgroup_parse_float()
6926 frac = DIV_ROUND_CLOSEST_ULL(frac, power_of_ten(flen - dec_shift)); in cgroup_parse_float()
6928 *v = whole * power_of_ten(dec_shift) + frac; in cgroup_parse_float()