Searched refs:frac_to_int (Results 1 – 1 of 1) sorted by relevance
23 #define frac_to_int(x) ((x) >> FRAC_BITS) macro265 power_range = sustainable_power + frac_to_int(power_range); in pid_controller()269 trace_thermal_power_allocator_pid(tz, frac_to_int(err), in pid_controller()270 frac_to_int(params->err_integral), in pid_controller()271 frac_to_int(p), frac_to_int(i), in pid_controller()272 frac_to_int(d), power_range); in pid_controller()449 weighted_req_power[i] = frac_to_int(weight * req_power[i]); in allocate_power()