Home
last modified time | relevance | path

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

/linux-6.1.9/lib/
Dflex_proportions.c257 struct fprop_local_percpu *pl, int max_frac, long nr) in __fprop_add_percpu_max() argument
259 if (unlikely(max_frac < FPROP_FRAC_BASE)) { in __fprop_add_percpu_max()
265 tmp = (u64)denominator * max_frac - in __fprop_add_percpu_max()
270 } else if (tmp < nr * (FPROP_FRAC_BASE - max_frac)) { in __fprop_add_percpu_max()
272 nr = div_u64(tmp + FPROP_FRAC_BASE - max_frac - 1, in __fprop_add_percpu_max()
273 FPROP_FRAC_BASE - max_frac); in __fprop_add_percpu_max()
/linux-6.1.9/include/linux/
Dflex_proportions.h89 struct fprop_local_percpu *pl, int max_frac, long nr);