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

[PATCH v2] thermal: add sysfs_notify on some attributes

2016-03-14 Thread Srikar Srimath Tirumala
usermode to react before hardware clocks are throttled and keep some critical apps running reliably longer. Signed-off-by: Srikar Srimath Tirumala --- Changes from v1: - Calling sysfs_notify for thermal_zone*/temp only when there is a trip violated on the thermal zone. - Modified commit

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

2016-02-25 Thread Srikar Srimath Tirumala
On 02/25/2016 04:12 PM, 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 conditions occur

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

2016-02-25 Thread Srikar Srimath Tirumala
usermode to react before hardware clocks are throttled and keep some critical apps running reliably longer. Signed-off-by: Srikar Srimath Tirumala --- Changes from v1: - Calling sysfs_notify for thermal_zone*/temp only when there is a trip violated on the thermal zone. - Modified commit

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

[PATCH] thermal: add sysfs_notify on some attributes

2016-02-25 Thread Srikar Srimath Tirumala
usermode to react before hardware clocks are throttled and keep some critical apps running reliably longer. Signed-off-by: Srikar Srimath Tirumala --- drivers/thermal/thermal_core.c | 34 ++ 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/drivers

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

2016-02-23 Thread Srikar Srimath Tirumala
\prevent throttling of hardware clocks while allowing some other critical apps to run longer reliably. Signed-off-by: Srikar Srimath Tirumala --- drivers/thermal/thermal_core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index