• Home
  • Raw
  • Download

Lines Matching full:trip

58  * @trip_switch_on:	first passive trip point of the thermal zone.  The
59 * governor switches on when this trip point is crossed.
60 * If the thermal zone only has one passive trip point,
62 * @trip_max_desired_temperature: last passive trip point of the thermal
100 if (instance->trip != trip_max_desired_temperature) in estimate_sustainable_power()
119 * @trip_switch_on: trip point number for the switch on temperature
129 struct thermal_trip trip; in estimate_pid_constants() local
134 ret = __thermal_zone_get_trip(tz, trip_switch_on, &trip); in estimate_pid_constants()
136 temperature_threshold -= trip.temperature; in estimate_pid_constants()
142 * passive trip points at the same temperature, that person in estimate_pid_constants()
399 if ((instance->trip == trip_max_desired_temperature) && in allocate_power()
438 if (instance->trip != trip_max_desired_temperature) in allocate_power()
474 if (instance->trip != trip_max_desired_temperature) in allocate_power()
499 * get_governor_trips() - get the number of the two trip points that are key for this governor
504 * a "switch on" trip point and a "maximum desired temperature". These
505 * are defined as the first and last passive trip points.
507 * If there is only one trip point, then that's considered to be the
508 * "maximum desired temperature" trip point and the governor is always
509 * on. If there are no passive or active trip points, then the
524 struct thermal_trip trip; in get_governor_trips() local
527 ret = __thermal_zone_get_trip(tz, i, &trip); in get_governor_trips()
530 "Failed to get trip point %d type: %d\n", i, in get_governor_trips()
535 if (trip.type == THERMAL_TRIP_PASSIVE) { in get_governor_trips()
542 } else if (trip.type == THERMAL_TRIP_ACTIVE) { in get_governor_trips()
577 if ((instance->trip != trip_max_desired_temperature) || in allow_maximum_power()
639 struct thermal_trip trip; in power_allocator_bind() local
666 &trip); in power_allocator_bind()
670 trip.temperature); in power_allocator_bind()
703 struct thermal_trip trip; in power_allocator_throttle() local
710 * We get called for every trip point but we only need to do in power_allocator_throttle()
716 ret = __thermal_zone_get_trip(tz, params->trip_switch_on, &trip); in power_allocator_throttle()
717 if (!ret && (tz->temperature < trip.temperature)) { in power_allocator_throttle()
727 ret = __thermal_zone_get_trip(tz, params->trip_max_desired_temperature, &trip); in power_allocator_throttle()
734 return allocate_power(tz, trip.temperature); in power_allocator_throttle()