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

2016-02-25 Thread Srikar Srimath Tirumala
On 02/24/2016 12:24 PM, Pandruvada, Srinivas wrote: On Tue, 2016-02-23 at 20:11 -0800, Srikar Srimath Tirumala wrote: Add a sysfs_notify on thermal_zone*/temp and cooling_device*/ cur_state whenever a passive or critical trip is triggered. This change allows usermode apps to register itself to

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

2016-02-24 Thread Pandruvada, Srinivas
On Tue, 2016-02-23 at 20:11 -0800, Srikar Srimath Tirumala wrote: > Add a sysfs_notify on thermal_zone*/temp and cooling_device*/ > cur_state whenever a passive or critical trip is triggered. > > This change allows usermode apps to register itself to get notified, > when certain thermal conditions

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

2016-02-23 Thread Srikar Srimath Tirumala
Add a sysfs_notify on thermal_zone*/temp and cooling_device*/ cur_state whenever a passive or critical trip is triggered. This change allows usermode apps to register itself to get notified, when certain thermal conditions occur and reduce their workload. This workload throttling can reduce\preven