Searched refs:ROUND_SCALE (Results 1 - 1 of 1) sorted by relevance

/illumos-gate/usr/src/uts/common/disp/
H A Dcpucaps.c197 #define ROUND_SCALE(x, y) (((x) + (y) / 2) / (y)) macro
564 cap->cap_usage -= ROUND_SCALE(cap_usage, CAP_DECAY_FACTOR);
1135 ROUND_SCALE(cap->cap_value, cap_tick_cost);
1137 ROUND_SCALE(cap->cap_usage, cap_tick_cost);
1139 ROUND_SCALE(cap->cap_maxusage, cap_tick_cost);
1141 capsp->cap_below.value.ui64 = ROUND_SCALE(cap->cap_below, tick_sec);
1142 capsp->cap_above.value.ui64 = ROUND_SCALE(cap->cap_above, tick_sec);

Completed in 72 milliseconds