Home
last modified time | relevance | path

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

/linux-6.12.1/tools/cgroup/
Diocost_monitor.py48 WEIGHT_ONE = prog['WEIGHT_ONE'].value_() variable
149 self.weight = iocg.weight.value_() / WEIGHT_ONE
150 self.active = iocg.active.value_() / WEIGHT_ONE
151 self.inuse = iocg.inuse.value_() / WEIGHT_ONE
152 self.hwa_pct = iocg.hweight_active.value_() * 100 / WEIGHT_ONE
153 self.hwi_pct = iocg.hweight_inuse.value_() * 100 / WEIGHT_ONE
/linux-6.12.1/block/
Dblk-iocost.c234 WEIGHT_ONE = 1 << 16, enumerator
706 return DIV64_U64_ROUND_UP(abs_cost * WEIGHT_ONE, hw_inuse); in abs_cost_to_cost()
714 return DIV64_U64_ROUND_UP(cost * hw_inuse, WEIGHT_ONE); in cost_to_abs_cost()
1190 hwa = hwi = WEIGHT_ONE; in current_hweight()
1226 u32 hwm = WEIGHT_ONE; in current_hweight_max()
1765 ioc->vtime_err -= div64_u64(excess * old_hwi, WEIGHT_ONE); in hweight_after_donation()
1784 delta = div64_s64(WEIGHT_ONE * (now->vnow - vtime), in hweight_after_donation()
1786 target = WEIGHT_ONE * MARGIN_TARGET_PCT / 100; in hweight_after_donation()
1787 new_hwi = div64_s64(WEIGHT_ONE * usage, WEIGHT_ONE - target + delta); in hweight_after_donation()
1877 if (after_sum >= WEIGHT_ONE) { in transfer_surpluses()
[all …]