Re: [RFC PATCH v6 4/9] thermal: let governors have private data for each thermal zone

2015-01-23 Thread Javi Merino
Hi Rui, On Mon, Dec 08, 2014 at 04:11:32AM +, Zhang Rui wrote: > On Fri, 2014-12-05 at 19:04 +, 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_

Re: [RFC PATCH v6 4/9] thermal: let governors have private data for each thermal zone

2014-12-07 Thread Zhang Rui
On Fri, 2014-12-05 at 19:04 +, 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 unbin

[RFC PATCH v6 4/9] thermal: let governors have private data for each thermal zone

2014-12-05 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