Re: [RFC PATCH v5 05/10] thermal: let governors have private data for each thermal zone

2014-08-19 Thread Javi Merino
On Tue, Aug 19, 2014 at 01:49:32PM +0100, edubez...@gmail.com wrote: > Javi, Hi Eduardo, > On Thu, Jul 10, 2014 at 10:18 AM, Javi Merino wrote: > > A governor may need to store its current state between calls to > > throttle(). That state depends on the thermal zone, so store it as > > private

Re: [RFC PATCH v5 05/10] thermal: let governors have private data for each thermal zone

2014-08-19 Thread edubez...@gmail.com
Javi, On Thu, Jul 10, 2014 at 10:18 AM, Javi Merino wrote: > A governor may need to store its current state between calls to > throttle(). That state depends on the thermal zone, so store it as > private data in struct thermal_zone_device. > > The governors may have two new ops: bind_to_tz() and

[RFC PATCH v5 05/10] thermal: let governors have private data for each thermal zone

2014-07-10 Thread Javi Merino
A governor may need to store its current state between calls to throttle(). That state depends on the thermal zone, so store it as private data in struct thermal_zone_device. The governors may have two new ops: bind_to_tz() and unbind_from_tz(). When provided, these functions let governors do som