linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv5 00/10] Thermal Framework Enhancements
@ 2014-01-16 23:56 Durgadoss R
  2014-01-16 23:56 ` [PATCHv5 01/10] Thermal: Do kfree in _unregister functions Durgadoss R
                   ` (9 more replies)
  0 siblings, 10 replies; 14+ messages in thread
From: Durgadoss R @ 2014-01-16 23:56 UTC (permalink / raw)
  To: rui.zhang, eduardo.valentin, linux-pm
  Cc: linux-kernel, hongbo.zhang, wni, Durgadoss R

This patch set is a v5 of the previous versions submitted here:
[v4]: http://lwn.net/Articles/568988/
[v3]: https://lkml.org/lkml/2013/2/5/228 
[v2]: http://lwn.net/Articles/531720/
[v1]: https://lkml.org/lkml/2012/12/18/108 
[RFC]:https://patchwork.kernel.org/patch/1758921/

This patch set is based on Rui's -next tree, on top
of commit 'c698a4492f01127ca90fc28cd5157f3d616fe4ff'
This is tested on a Core-i5 running ubuntu 12.04.

Changes since v4:
 * Cleaned up the thermal_release function; Now all
   kfree's are done in _unregister functions.
 * Kconfig option to selectively enable and use this
   new version of thermal_core.c
 * According to a previous comment from Rui, moved all
   new API's into a file named thermal_core_new.c
Changes since v3:
 * Added a patch to conditionally do kfree(cdev) in
   thermal_release function.
 * Reworked all sysfs attributes to have one value per file
   This includes sensor_trip_* and map_weight* attributes.
 * Added 'lock' variable in thermal_zone structure to
   protect its members.
 * Added Documentation to all functions in thermal_core.c
 * Changes all strcpy() to strlcpy()
 * Used devm_kzalloc() in places where applicable
 * Address some buffer overflow conditions and contentions
   in tz->sensors[] and tz->cdevs[].
Changes since v2:
 * Reworked the map sysfs attributes in patch [5/8]
 * Dropped configuration for maximum sensors and
   cooling devices, through Kconfig.
 * Added __remove_trip_attr method
 * Renamed __clean_map_entry to __remove_map_entry
   for consistency in naming.
Changes Since v1:
 * Removed kobject creation for thermal_trip and thermal_map
   nodes as per Greg-KH's comments.
 * Added ABI Documentation under 'testing'.
 * Modified the GET_INDEX macro to be more linux-like, thanks
   to Joe Perches.
 * Added get_[sensor/cdev]_by_name APIs to thermal.h

This series contains 10 patches:
Patch 1/10: Remove code from thermal_release function. 
            Do kfree in _unregister functions.
Patch 2/10: Creates new sensor level APIs
Patch 3/10: Adds new cooling device APIs
Patch 4/10: Creates new zone level APIs. The existing tzd structure is
            kept as such for clarity and compatibility purposes.
Patch 5/10: Creates functions to add/remove a cdev to/from a zone. The
            existing tcd structure need not be modified.
Patch 6/10: Adds sensorX_trip_[active/passive/hot/critical] sysfs nodes,
  	    under /sys/class/thermal/zoneY/. This exposes various trip
            points for sensorX present in zoneY.
Patch 7/10: Adds mapY_* sysfs node. These attributes represent the
	    relationship between various sensors and cooling
	    devices in a thermal zone.
Patch 8/10: Creates Documentation for the new APIs. A new file is
            created for clarity. Final goal is to merge with the existing
            file or refactor the files, as whatever seems appropriate.
Patch 9/10: Add ABI documentation for sysfs interfaces introduced in this patch.
Patch 10/10: A dummy driver that can be used for testing. This is not for merge.

Thanks to Rui for helping me in resolving some
Kconfig issues, related to this series.

Durgadoss R (10):
  Thermal: Do kfree in _unregister functions
  Thermal: Create sensor level APIs
  Thermal: Add cooling device APIs
  Thermal: Create zone level APIs
  Thermal: Add APIs to bind cdev to new zone structure
  Thermal: Add trip point sysfs nodes for sensor
  Thermal: Create Thermal map sysfs attributes for a zone
  Thermal: Add Documentation to new APIs
  Thermal: Add ABI Documentation for sysfs interfaces
  Thermal: Dummy driver used for testing

 Documentation/ABI/testing/sysfs-class-thermal |  137 +++
 Documentation/thermal/sysfs-api2.txt          |  240 ++++
 drivers/thermal/Kconfig                       |    9 +
 drivers/thermal/Makefile                      |    4 +
 drivers/thermal/thermal_core.c                |   19 +-
 drivers/thermal/thermal_core.h                |    1 +
 drivers/thermal/thermal_core_new.c            | 1585 +++++++++++++++++++++++++
 drivers/thermal/thermal_test.c                |  322 +++++
 include/linux/thermal.h                       |  144 ++-
 9 files changed, 2447 insertions(+), 14 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-class-thermal
 create mode 100644 Documentation/thermal/sysfs-api2.txt
 create mode 100644 drivers/thermal/thermal_core_new.c
 create mode 100644 drivers/thermal/thermal_test.c

-- 
1.7.9.5


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

end of thread, other threads:[~2014-03-03 13:44 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-16 23:56 [PATCHv5 00/10] Thermal Framework Enhancements Durgadoss R
2014-01-16 23:56 ` [PATCHv5 01/10] Thermal: Do kfree in _unregister functions Durgadoss R
2014-01-21 19:46   ` Dmitry Torokhov
2014-03-03 13:44     ` Zhang Rui
2014-01-16 23:56 ` [PATCHv5 02/10] Thermal: Create sensor level APIs Durgadoss R
2014-01-16 23:56 ` [PATCHv5 03/10] Thermal: Add cooling device APIs Durgadoss R
2014-01-17  7:57   ` R, Durgadoss
2014-01-16 23:56 ` [PATCHv5 04/10] Thermal: Create zone level APIs Durgadoss R
2014-01-16 23:56 ` [PATCHv5 05/10] Thermal: Add APIs to bind cdev to new zone structure Durgadoss R
2014-01-16 23:56 ` [PATCHv5 06/10] Thermal: Add trip point sysfs nodes for sensor Durgadoss R
2014-01-16 23:56 ` [PATCHv5 07/10] Thermal: Create Thermal map sysfs attributes for a zone Durgadoss R
2014-01-16 23:56 ` [PATCHv5 08/10] Thermal: Add Documentation to new APIs Durgadoss R
2014-01-16 23:56 ` [PATCHv5 09/10] Thermal: Add ABI Documentation for sysfs interfaces Durgadoss R
2014-01-16 23:56 ` [PATCHv5 10/10] Thermal: Dummy driver used for testing Durgadoss R

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).