All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] add sysfs_notify on some attributes
@ 2016-03-30  0:41 Srikar Srimath Tirumala
  2016-03-30  0:41 ` [PATCH v3 2/4] thermal: send notifications for tz temperature Srikar Srimath Tirumala
       [not found] ` <1459298497-29481-1-git-send-email-srikars-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
  0 siblings, 2 replies; 12+ messages in thread
From: Srikar Srimath Tirumala @ 2016-03-30  0:41 UTC (permalink / raw)
  To: edubezval-Re5JQEeQqe8AvxtiuMwx3w,
	rui.zhang-ral2JQCrhuEAvxtiuMwx3w,
	srinivas.pandruvada-ral2JQCrhuEAvxtiuMwx3w,
	linux-pm-u79uwXL29TY76Z2rM5mHXA,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA
  Cc: mlongnecker-DDmLM1+adcrQT0dZR+AlfA, Srikar Srimath Tirumala

This patchset adds support to send certain thermal notifications and
facilitate workload throttling in userspace. Userspace apps that
want to reduce workload when thermal throttling starts, will
have to register for these events and interpret them as per their
requirement. This workload throttling allows userspace to react before
any hardware clocks are throttled and can keep some critical apps
running reliably longer.

v3
 * Reduced the number of sysfs_notify calls, Notify once per trip only
   when the temperature crosses the trip point.
 * Use hysteresis to avoid sending too many notifications when
   temperatures are bouncing around.
 * Add trip state tracking.
 * Add support to disable trip point notifications.

v2
 * Call sysfs_notify for thermal_zone*/temp only when a trip has
   violated.

v1
 * Base version, added two sysfs_notify calls.

Srikar Srimath Tirumala (4):
  thermal: send notifications for cdev state change
  thermal: send notifications for tz temperature
  thermal: of: enable temperature notifications
  thermal: update documentation for new device ops

 Documentation/thermal/sysfs-api.txt |  5 +++++
 drivers/thermal/of-thermal.c        | 43 +++++++++++++++++++++++++++++++++++++
 drivers/thermal/thermal_core.c      | 29 +++++++++++++++++++++++++
 include/linux/thermal.h             | 12 +++++++++++
 4 files changed, 89 insertions(+)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-05-03  3:27 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-30  0:41 [PATCH v3 0/4] add sysfs_notify on some attributes Srikar Srimath Tirumala
2016-03-30  0:41 ` [PATCH v3 2/4] thermal: send notifications for tz temperature Srikar Srimath Tirumala
     [not found]   ` <1459298497-29481-3-git-send-email-srikars-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2016-03-30 16:43     ` Matt Longnecker
2016-03-30 16:53       ` Matt Longnecker
     [not found] ` <1459298497-29481-1-git-send-email-srikars-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2016-03-30  0:41   ` [PATCH v3 1/4] thermal: send notifications for cdev state change Srikar Srimath Tirumala
     [not found]     ` <1459298497-29481-2-git-send-email-srikars-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2016-03-30 16:45       ` Matt Longnecker
2016-03-30  0:41   ` [PATCH v3 3/4] thermal: of: enable temperature notifications Srikar Srimath Tirumala
2016-03-30 16:54     ` Matt Longnecker
     [not found]     ` <1459298497-29481-4-git-send-email-srikars-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2016-05-03  3:26       ` Eduardo Valentin
2016-03-30  0:41   ` [PATCH v3 4/4] thermal: update documentation for new device ops Srikar Srimath Tirumala
     [not found]     ` <1459298497-29481-5-git-send-email-srikars-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2016-03-30 16:54       ` Matt Longnecker
2016-05-03  3:27     ` Eduardo Valentin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.