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

/linux-4.4.14/drivers/base/power/
H A Ddomain_governor.c17 s32 constraint_ns = -1; dev_update_qos_constraint() local
20 constraint_ns = dev_gpd_data(dev)->td.effective_constraint_ns; dev_update_qos_constraint()
22 if (constraint_ns < 0) { dev_update_qos_constraint()
23 constraint_ns = dev_pm_qos_read_value(dev); dev_update_qos_constraint()
24 constraint_ns *= NSEC_PER_USEC; dev_update_qos_constraint()
26 if (constraint_ns == 0) dev_update_qos_constraint()
30 * constraint_ns cannot be negative here, because the device has been dev_update_qos_constraint()
33 if (constraint_ns < *constraint_ns_p || *constraint_ns_p == 0) dev_update_qos_constraint()
34 *constraint_ns_p = constraint_ns; dev_update_qos_constraint()
47 s64 constraint_ns; default_stop_ok() local
62 constraint_ns = __dev_pm_qos_read_value(dev); default_stop_ok()
66 if (constraint_ns < 0) default_stop_ok()
69 constraint_ns *= NSEC_PER_USEC; default_stop_ok()
76 device_for_each_child(dev, &constraint_ns, default_stop_ok()
79 if (constraint_ns > 0) { default_stop_ok()
80 constraint_ns -= td->suspend_latency_ns + default_stop_ok()
82 if (constraint_ns == 0) default_stop_ok()
85 td->effective_constraint_ns = constraint_ns; default_stop_ok()
86 td->cached_stop_ok = constraint_ns >= 0; default_stop_ok()
161 s64 constraint_ns; default_power_down_ok() local
169 constraint_ns = td->effective_constraint_ns; default_power_down_ok()
171 if (constraint_ns < 0) { default_power_down_ok()
172 constraint_ns = dev_pm_qos_read_value(pdd->dev); default_power_down_ok()
173 constraint_ns *= NSEC_PER_USEC; default_power_down_ok()
175 if (constraint_ns == 0) default_power_down_ok()
179 * constraint_ns cannot be negative here, because the device has default_power_down_ok()
182 if (constraint_ns <= off_on_time_ns) default_power_down_ok()
185 if (min_off_time_ns > constraint_ns || min_off_time_ns < 0) default_power_down_ok()
186 min_off_time_ns = constraint_ns; default_power_down_ok()

Completed in 40 milliseconds