Home
last modified time | relevance | path

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

/openbmc/linux/drivers/thermal/
H A Dgov_power_allocator.c23 #define frac_to_int(x) ((x) >> FRAC_BITS) macro
267 power_range = sustainable_power + frac_to_int(power_range); in pid_controller()
271 trace_thermal_power_allocator_pid(tz, frac_to_int(err), in pid_controller()
272 frac_to_int(params->err_integral), in pid_controller()
273 frac_to_int(p), frac_to_int(i), in pid_controller()
274 frac_to_int(d), power_range); in pid_controller()
452 weighted_req_power[i] = frac_to_int(weight * req_power[i]); in allocate_power()