Lines Matching refs:governor
81 int thermal_register_governor(struct thermal_governor *governor) in thermal_register_governor() argument
87 if (!governor) in thermal_register_governor()
93 if (__find_governor(governor->name) == NULL) { in thermal_register_governor()
95 list_add(&governor->governor_list, &thermal_governor_list); in thermal_register_governor()
96 if (!def_governor && !strncmp(governor->name, in thermal_register_governor()
98 def_governor = governor; in thermal_register_governor()
108 if (pos->governor) in thermal_register_governor()
113 if (!strncasecmp(name, governor->name, THERMAL_NAME_LENGTH)) in thermal_register_governor()
114 pos->governor = governor; in thermal_register_governor()
123 void thermal_unregister_governor(struct thermal_governor *governor) in thermal_unregister_governor() argument
127 if (!governor) in thermal_unregister_governor()
132 if (__find_governor(governor->name) == NULL) in thermal_unregister_governor()
138 if (!strncasecmp(pos->governor->name, governor->name, in thermal_unregister_governor()
140 pos->governor = NULL; in thermal_unregister_governor()
144 list_del(&governor->governor_list); in thermal_unregister_governor()
362 tz->governor ? tz->governor->throttle(tz, trip) : in handle_non_critical_trips()
792 tz->governor = gov; in policy_store()
806 return sprintf(buf, "%s\n", tz->governor->name); in policy_show()
1596 tz->governor = __find_governor(tz->tzp->governor_name); in thermal_zone_device_register()
1598 tz->governor = def_governor; in thermal_zone_device_register()
1690 tz->governor = NULL; in thermal_zone_device_unregister()