Lines Matching refs:governor
74 if (tz->governor && tz->governor->bind_to_tz) { in bind_previous_governor()
75 if (tz->governor->bind_to_tz(tz)) { in bind_previous_governor()
78 failed_gov_name, tz->governor->name, tz->type); in bind_previous_governor()
79 tz->governor = NULL; in bind_previous_governor()
98 if (tz->governor && tz->governor->unbind_from_tz) in thermal_set_governor()
99 tz->governor->unbind_from_tz(tz); in thermal_set_governor()
110 tz->governor = new_gov; in thermal_set_governor()
115 int thermal_register_governor(struct thermal_governor *governor) in thermal_register_governor() argument
121 if (!governor) in thermal_register_governor()
127 if (!__find_governor(governor->name)) { in thermal_register_governor()
131 list_add(&governor->governor_list, &thermal_governor_list); in thermal_register_governor()
132 match_default = !strncmp(governor->name, in thermal_register_governor()
137 def_governor = governor; in thermal_register_governor()
147 if (pos->governor) in thermal_register_governor()
152 if (!strncasecmp(name, governor->name, THERMAL_NAME_LENGTH)) { in thermal_register_governor()
155 ret = thermal_set_governor(pos, governor); in thermal_register_governor()
159 governor->name, pos->type, ret); in thermal_register_governor()
169 void thermal_unregister_governor(struct thermal_governor *governor) in thermal_unregister_governor() argument
173 if (!governor) in thermal_unregister_governor()
178 if (!__find_governor(governor->name)) in thermal_unregister_governor()
184 if (!strncasecmp(pos->governor->name, governor->name, in thermal_unregister_governor()
190 list_del(&governor->governor_list); in thermal_unregister_governor()
241 struct thermal_governor **governor; in thermal_unregister_governors() local
243 for_each_governor_table(governor) in thermal_unregister_governors()
244 thermal_unregister_governor(*governor); in thermal_unregister_governors()
250 struct thermal_governor **governor; in thermal_register_governors() local
252 for_each_governor_table(governor) { in thermal_register_governors()
253 ret = thermal_register_governor(*governor); in thermal_register_governors()
256 (*governor)->name); in thermal_register_governors()
261 (*governor)->name); in thermal_register_governors()
268 if (gov == governor) in thermal_register_governors()
310 tz->governor ? tz->governor->throttle(tz, trip) : in handle_non_critical_trips()
1240 struct thermal_governor *governor; in thermal_zone_device_register_with_trips() local
1348 governor = __find_governor(tz->tzp->governor_name); in thermal_zone_device_register_with_trips()
1350 governor = def_governor; in thermal_zone_device_register_with_trips()
1352 result = thermal_set_governor(tz, governor); in thermal_zone_device_register_with_trips()