[PATCH v3 3/4] thermal: power_allocator: don't require tzp to be present for the thermal zone

2015-08-17 Thread Javi Merino
Thermal zones created using thermal_zone_device_create() may not have tzp. As the governor gets its parameters from there, allocate it while the governor is bound to the thermal zone so that it can operate in it. In this case, tzp is freed when the thermal zone switches to another governor. Cc:

[PATCH v3 3/4] thermal: power_allocator: don't require tzp to be present for the thermal zone

2015-08-17 Thread Javi Merino
Thermal zones created using thermal_zone_device_create() may not have tzp. As the governor gets its parameters from there, allocate it while the governor is bound to the thermal zone so that it can operate in it. In this case, tzp is freed when the thermal zone switches to another governor. Cc: