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

/linux-4.4.14/drivers/thermal/
H A Dpower_allocator.c30 #define int_to_frac(x) ((x) << FRAC_BITS) macro
159 tz->tzp->k_po = int_to_frac(sustainable_power) / estimate_pid_constants()
163 tz->tzp->k_pu = int_to_frac(2 * sustainable_power) / estimate_pid_constants()
167 tz->tzp->k_i = int_to_frac(10) / 1000; estimate_pid_constants()
201 max_power_frac = int_to_frac(max_allocatable_power); pid_controller()
213 err = int_to_frac(err); pid_controller()
226 if (err < int_to_frac(tz->tzp->integral_cutoff)) { pid_controller()

Completed in 48 milliseconds