Re: [PATCH v2] thermal: add sysfs_notify on some attributes

2016-03-30 Thread Srinivas Pandruvada
On Mon, 2016-03-28 at 18:35 -0700, Eduardo Valentin wrote: > On Tue, Mar 15, 2016 at 11:08:00PM +, Pandruvada, Srinivas wrote: > > > > On Mon, 2016-03-14 at 11:12 -0700, Srikar Srimath Tirumala wrote: > > > > > > [...] > > > The complexity of such communication (or even the current status o

Re: [PATCH v2] thermal: add sysfs_notify on some attributes

2016-03-30 Thread Pandruvada, Srinivas
On Tue, 2016-03-29 at 19:53 -0700, Srikar Srimath Tirumala wrote: > On 03/28/2016 06:35 PM, Eduardo Valentin wrote: > > > > On Tue, Mar 15, 2016 at 11:08:00PM +, Pandruvada, Srinivas > > wrote: > > > > > > On Mon, 2016-03-14 at 11:12 -0700, Srikar Srimath Tirumala wrote: [...] > > I have crea

Re: [PATCH v2] thermal: add sysfs_notify on some attributes

2016-03-29 Thread Srikar Srimath Tirumala
On 03/28/2016 06:35 PM, Eduardo Valentin wrote: On Tue, Mar 15, 2016 at 11:08:00PM +, Pandruvada, Srinivas wrote: On Mon, 2016-03-14 at 11:12 -0700, Srikar Srimath Tirumala wrote: Add a sysfs_notify on thermal_zone*/temp and cooling_device*/ cur_state whenever any trip is triggered or cur s

Re: [PATCH v2] thermal: add sysfs_notify on some attributes

2016-03-28 Thread Eduardo Valentin
On Tue, Mar 15, 2016 at 11:08:00PM +, Pandruvada, Srinivas wrote: > On Mon, 2016-03-14 at 11:12 -0700, Srikar Srimath Tirumala wrote: > > Add a sysfs_notify on thermal_zone*/temp and cooling_device*/ > > cur_state whenever any trip is triggered or cur state is changed. > > > > This change allo

Re: [PATCH v2] thermal: add sysfs_notify on some attributes

2016-03-15 Thread Pandruvada, Srinivas
On Mon, 2016-03-14 at 11:12 -0700, Srikar Srimath Tirumala wrote: > Add a sysfs_notify on thermal_zone*/temp and cooling_device*/ > cur_state whenever any trip is triggered or cur state is changed. > > This change allows usermode apps to register themselves to get > notified, when certain thermal

[PATCH v2] thermal: add sysfs_notify on some attributes

2016-03-14 Thread Srikar Srimath Tirumala
Add a sysfs_notify on thermal_zone*/temp and cooling_device*/ cur_state whenever any trip is triggered or cur state is changed. This change allows usermode apps to register themselves to get notified, when certain thermal conditions occur and reduce their workload. This workload throttling allows

[RFC][PATCH v2] thermal: add sysfs_notify on some attributes

2016-02-25 Thread Srikar Srimath Tirumala
Add a sysfs_notify on thermal_zone*/temp and cooling_device*/ cur_state whenever any trip is triggered or cur state is changed. This change allows usermode apps to register themselves to get notified, when certain thermal conditions occur and reduce their workload. This workload throttling allows