Home
last modified time | relevance | path

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

/titanic_50/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); in cap_project_usage_walker()
1135 ROUND_SCALE(cap->cap_value, cap_tick_cost); in cap_kstat_update()
1137 ROUND_SCALE(cap->cap_usage, cap_tick_cost); in cap_kstat_update()
1139 ROUND_SCALE(cap->cap_maxusage, cap_tick_cost); in cap_kstat_update()
1141 capsp->cap_below.value.ui64 = ROUND_SCALE(cap->cap_below, tick_sec); in cap_kstat_update()
1142 capsp->cap_above.value.ui64 = ROUND_SCALE(cap->cap_above, tick_sec); in cap_kstat_update()