Lines Matching refs:governor
78 if (tz->governor && tz->governor->bind_to_tz) { in bind_previous_governor()
79 if (tz->governor->bind_to_tz(tz)) { in bind_previous_governor()
82 failed_gov_name, tz->governor->name, tz->type); in bind_previous_governor()
83 tz->governor = NULL; in bind_previous_governor()
102 if (tz->governor && tz->governor->unbind_from_tz) in thermal_set_governor()
103 tz->governor->unbind_from_tz(tz); in thermal_set_governor()
114 tz->governor = new_gov; in thermal_set_governor()
119 int thermal_register_governor(struct thermal_governor *governor) in thermal_register_governor() argument
125 if (!governor) in thermal_register_governor()
131 if (!__find_governor(governor->name)) { in thermal_register_governor()
135 list_add(&governor->governor_list, &thermal_governor_list); in thermal_register_governor()
136 match_default = !strncmp(governor->name, in thermal_register_governor()
141 def_governor = governor; in thermal_register_governor()
151 if (pos->governor) in thermal_register_governor()
156 if (!strncasecmp(name, governor->name, THERMAL_NAME_LENGTH)) { in thermal_register_governor()
159 ret = thermal_set_governor(pos, governor); in thermal_register_governor()
163 governor->name, pos->type, ret); in thermal_register_governor()
173 void thermal_unregister_governor(struct thermal_governor *governor) in thermal_unregister_governor() argument
177 if (!governor) in thermal_unregister_governor()
182 if (!__find_governor(governor->name)) in thermal_unregister_governor()
188 if (!strncasecmp(pos->governor->name, governor->name, in thermal_unregister_governor()
194 list_del(&governor->governor_list); in thermal_unregister_governor()
244 struct thermal_governor **governor; in thermal_unregister_governors() local
246 for_each_governor_table(governor) in thermal_unregister_governors()
247 thermal_unregister_governor(*governor); in thermal_unregister_governors()
253 struct thermal_governor **governor; in thermal_register_governors() local
255 for_each_governor_table(governor) { in thermal_register_governors()
256 ret = thermal_register_governor(*governor); in thermal_register_governors()
259 (*governor)->name); in thermal_register_governors()
264 (*governor)->name); in thermal_register_governors()
271 if (gov == governor) in thermal_register_governors()
331 tz->governor ? tz->governor->throttle(tz, trip) : in handle_non_critical_trips()
1385 struct thermal_governor *governor; in thermal_zone_device_register() local
1462 governor = __find_governor(tz->tzp->governor_name); in thermal_zone_device_register()
1464 governor = def_governor; in thermal_zone_device_register()
1466 result = thermal_set_governor(tz, governor); in thermal_zone_device_register()