Home
last modified time | relevance | path

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

/linux-5.19.10/tools/cgroup/
Diocost_monitor.py48 WEIGHT_ONE = prog['WEIGHT_ONE'].value_() variable
146 self.weight = iocg.weight.value_() / WEIGHT_ONE
147 self.active = iocg.active.value_() / WEIGHT_ONE
148 self.inuse = iocg.inuse.value_() / WEIGHT_ONE
149 self.hwa_pct = iocg.hweight_active.value_() * 100 / WEIGHT_ONE
150 self.hwi_pct = iocg.hweight_inuse.value_() * 100 / WEIGHT_ONE
/linux-5.19.10/block/
Dblk-iocost.c234 WEIGHT_ONE = 1 << 16, enumerator
707 return DIV64_U64_ROUND_UP(abs_cost * WEIGHT_ONE, hw_inuse); in abs_cost_to_cost()
715 return DIV64_U64_ROUND_UP(cost * hw_inuse, WEIGHT_ONE); in cost_to_abs_cost()
1169 hwa = hwi = WEIGHT_ONE; in current_hweight()
1205 u32 hwm = WEIGHT_ONE; in current_hweight_max()
1733 ioc->vtime_err -= div64_u64(excess * old_hwi, WEIGHT_ONE); in hweight_after_donation()
1752 delta = div64_s64(WEIGHT_ONE * (now->vnow - vtime), in hweight_after_donation()
1754 target = WEIGHT_ONE * MARGIN_TARGET_PCT / 100; in hweight_after_donation()
1755 new_hwi = div64_s64(WEIGHT_ONE * usage, WEIGHT_ONE - target + delta); in hweight_after_donation()
1845 if (after_sum >= WEIGHT_ONE) { in transfer_surpluses()
[all …]