This patch adds Documentation for ABI's introduced
for thermal subsystem (under /sys/class/thermal/).
Signed-off-by: Durgadoss R
---
Documentation/ABI/testing/sysfs-class-thermal | 161 +
1 file changed, 161 insertions(+)
create mode 100644 Documentation/ABI/te
API
* Use thermal_cdev_register as API name, to keep
THERMAL_V2 APIs along with the existing ones.
* Use 'cdevX' as name for cooling_device so as
to not collide with the existing ABI.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_core_new.c | 184 +
This patch adds Documentation for the new APIs
introduced in this patch set. The documentation
also has a model sysfs structure for reference.
Signed-off-by: Durgadoss R
---
Documentation/thermal/sysfs-api2.txt | 240 ++
1 file changed, 240 insertions(+)
create
, do all kfree() of devices in their own
_unregister functions. This makes the code look
clean and easy to maintain.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_core.c | 17 +
1 file changed, 5 insertions(+), 12 deletions(-)
diff --git a/drivers/thermal/thermal_core.c b
register(or unregister) with the thermal framework.
Signed-off-by: Durgadoss R
---
drivers/thermal/Kconfig|3 +
drivers/thermal/Makefile |1 +
drivers/thermal/thermal_core.c |2 +-
drivers/thermal/thermal_core.h |1 +
drivers/thermal/thermal_core_new.c
This patch creates new APIs to add/remove a
cdev to/from a zone. This patch does not change
the existing cooling device implementation.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_core_new.c | 135
include/linux/thermal.h|8 +++
2
This patch adds Documentation for the new APIs
introduced in this patch set. The documentation
also has a model sysfs structure for reference.
Signed-off-by: Durgadoss R
---
Documentation/thermal/sysfs-api2.txt | 240 ++
1 file changed, 240 insertions(+)
create
throttled, can help to bring down
the temperature of the hot spot.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_core_new.c | 268
include/linux/thermal.h| 23
2 files changed, 291 insertions(+)
diff --git a/drivers/thermal
.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_core_new.c | 358 +++-
include/linux/thermal.h| 39 +++-
2 files changed, 395 insertions(+), 2 deletions(-)
diff --git a/drivers/thermal/thermal_core_new.c
b/drivers/thermal/thermal_core_new.c
This patch has a dummy driver that can be used for
testing purposes. This patch is not for merge.
Signed-off-by: Durgadoss R
---
drivers/thermal/Kconfig|6 +
drivers/thermal/Makefile |3 +
drivers/thermal/thermal_test.c | 322
3
.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_core_new.c | 275
include/linux/thermal.h| 25
2 files changed, 300 insertions(+)
diff --git a/drivers/thermal/thermal_core_new.c
b/drivers/thermal/thermal_core_new.c
index e6a35f0
This patch adds Documentation for ABI's introduced
for thermal subsystem (under /sys/class/thermal/).
Signed-off-by: Durgadoss R
---
Documentation/ABI/testing/sysfs-class-thermal | 137 +
1 file changed, 137 insertions(+)
create mode 100644 Documentation/ABI/te
API
* Use thermal_cdev_register as API name, to keep
THERMAL_V2 APIs along with the existing ones.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_core_new.c | 184
include/linux/thermal.h| 12 +++
2 files changed, 196 insertions(+)
di
nterfaces 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
.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_core.c | 252 +++-
include/linux/thermal.h| 26 +
2 files changed, 277 insertions(+), 1 deletion(-)
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index d6e29f6
.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_core.c | 344 +++-
include/linux/thermal.h| 40 -
2 files changed, 379 insertions(+), 5 deletions(-)
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index 3c4ef62
This patch adds Documentation for the new APIs
introduced in this patch set. The documentation
also has a model sysfs structure for reference.
Signed-off-by: Durgadoss R
---
Documentation/thermal/sysfs-api2.txt | 248 ++
1 file changed, 248 insertions(+)
create
subsystem. If the sensor needs to participate
in platform thermal management, the corresponding
driver can use the APIs introduced in this patch, to
register(or unregister) with the thermal framework.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_core.c | 284
This patch adds Documentation for ABI's introduced
for thermal subsystem (under /sys/class/thermal/).
Signed-off-by: Durgadoss R
---
Documentation/ABI/testing/sysfs-class-thermal | 137 +
1 file changed, 137 insertions(+)
create mode 100644 Documentation/ABI/te
This patch creates new APIs to add/remove a
cdev to/from a zone. This patch does not change
the old cooling device implementation.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_core.c | 136
include/linux/thermal.h|9 +++
2 files
This is not for merge.
Sorry for the long delay in resubmitting this patch set.
Thanks to Eduardo, Wei Ni, for their comments on v3.
Durgadoss R (9):
Thermal: Check for validity before doing kfree
Thermal: Create sensor level APIs
Thermal: Create zone level APIs
Thermal: Add APIs to bind cdev to new z
throttled, can help to bring down
the temperature of the hot spot.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_core.c | 267 +++-
include/linux/thermal.h| 23
2 files changed, 289 insertions(+), 1 deletion(-)
diff --git a/drivers
s might accidently free memory allocated them
silently; and cause memory errors.
This patch changes this behavior by doing
kfree(cdev) only when the device pointer belongs
to a real cdev i.e. cooling_device.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_core.c |3 ++-
1 file change
This patch has a dummy driver that can be used for
testing purposes. This patch is not for merge.
Signed-off-by: Durgadoss R
---
drivers/thermal/Kconfig|5 +
drivers/thermal/Makefile |3 +
drivers/thermal/thermal_test.c | 322
3
throttled, can help to bring down
the temperature of the hot spot.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_sys.c | 196 +
include/linux/thermal.h | 22 +
2 files changed, 218 insertions(+)
diff --git a/drivers/thermal
.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_sys.c | 225 -
include/linux/thermal.h | 38 ++-
2 files changed, 260 insertions(+), 3 deletions(-)
diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c
index bf703b1
This patch creates a thermal map sysfs node under
/sys/class/thermal/zoneX/. This contains
entries named mapY_trip_type, mapY_sensor_name,
mapY_cdev_name, mapY_trip_mask, mapY_weights.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_sys.c | 221
This patch has a dummy driver that can be used for
testing purposes. This patch is not for merge.
Signed-off-by: Durgadoss R
---
drivers/thermal/Kconfig|5 +
drivers/thermal/Makefile |2 +
drivers/thermal/thermal_test.c | 324
3
This patch adds Documentation for the new APIs
introduced in this patch set. The documentation
also has a model sysfs structure for reference.
Signed-off-by: Durgadoss R
---
Documentation/thermal/sysfs-api2.txt | 247 ++
1 file changed, 247 insertions(+)
create
This patch creates new APIs to add/remove a
cdev to/from a zone. This patch does not change
the old cooling device implementation.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_sys.c | 80 +
include/linux/thermal.h |9 +
2 files
This patch adds Documentation for ABI's introduced
for thermal subsystem (under /sys/class/thermal/).
Signed-off-by: Durgadoss R
---
Documentation/ABI/testing/sysfs-class-thermal | 137 +
1 file changed, 137 insertions(+)
create mode 100644 Documentation/ABI/te
for sysfs interfaces introduced in this patch.
Patch 8/8: A dummy driver that can be used for testing. This is not for merge.
Durgadoss R (8):
Thermal: Create sensor level APIs
Thermal: Create zone level APIs
Thermal: Add APIs to bind cdev to new zone structure
Thermal: Add trip point sy
subsystem. If the sensor needs to participate
in platform thermal management, the corresponding
driver can use the APIs introduced in this patch, to
register(or unregister) with the thermal framework.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_sys.c | 280
throttled, can help to bring down
the temperature of the hot spot.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_sys.c | 196 +
include/linux/thermal.h | 22 +
2 files changed, 218 insertions(+)
diff --git a/drivers/thermal
.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_sys.c | 211 -
include/linux/thermal.h | 38 +++-
2 files changed, 246 insertions(+), 3 deletions(-)
diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c
index 332bd61
configurable through Kconfig
Patch 8/9: Add ABI documentation for sysfs interfaces introduced in this patch.
Patch 9/9: A dummy driver that can be used for testing. This is not for merge.
Thanks to Greg-KH, Hongbo Zhang and Joe Perches for their comments on v1.
Durgadoss R (9):
Thermal: Crea
This patch makes MAX_SENSORS_PER_ZONE and
MAX_CDEVS_PER_ZONE values configurable. The
default value is 1, and range is 1-12.
Signed-off-by: Durgadoss R
---
drivers/thermal/Kconfig | 14 ++
include/linux/thermal.h |6 +++---
2 files changed, 17 insertions(+), 3 deletions
This patch has a dummy driver that can be used for
testing purposes. This patch is not for merge.
Signed-off-by: Durgadoss R
---
drivers/thermal/Kconfig|5 +
drivers/thermal/Makefile |3 +
drivers/thermal/thermal_test.c | 329
3
This patch adds Documentation for ABI's introduced
for thermal subsystem (under /sys/class/thermal/).
Signed-off-by: Durgadoss R
---
Documentation/ABI/testing/sysfs-class-thermal | 93 +
1 file changed, 93 insertions(+)
create mode 100644 Documentation/ABI/te
This patch adds Documentation for the new APIs
introduced in this patch set. The documentation
also has a model sysfs structure for reference.
Signed-off-by: Durgadoss R
---
Documentation/thermal/sysfs-api2.txt | 248 ++
1 file changed, 248 insertions(+)
create
This patch creates a thermal map sysfs node under
/sys/class/thermal/zoneX/. This contains
entries named map0, map1 .. mapN. Each map has the
following space separated values:
trip_type sensor_name cdev_name trip_mask weights
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_sys.c | 122
This patch creates new APIs to add/remove a
cdev to/from a zone. This patch does not change
the old cooling device implementation.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_sys.c | 80 +
include/linux/thermal.h |9 +
2 files
subsystem. If the sensor needs to participate
in platform thermal management, the corresponding
driver can use the APIs introduced in this patch, to
register(or unregister) with the thermal framework.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_sys.c | 280
subsystem. If the sensor needs to participate
in platform thermal management, the corresponding
driver can use the APIs introduced in this patch, to
register(or unregister) with the thermal framework.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_sys.c | 280
This patch creates a thermal map sysfs node under
/sys/class/thermal/thermal_zoneX/. This contains
entries named map0, map1 .. mapN. Each map has the
following space separated values:
trip_type sensor_name cdev_name trip_mask weights
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_sys.c
This patch adds a thermal_trip directory under
/sys/class/thermal/zoneX. This directory contains
the trip point values for sensors bound to this
zone.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_sys.c | 237 -
include/linux/thermal.h
This patch adds Documentation for the new APIs
introduced in this patch set. The documentation
also has a model sysfs structure for reference.
Signed-off-by: Durgadoss R
---
Documentation/thermal/sysfs-api2.txt | 248 ++
1 file changed, 248 insertions(+)
create
This patch makes MAX_SENSORS_PER_ZONE and
MAX_CDEVS_PER_ZONE values configurable. The
default value is 1, and range is 1-12.
Signed-off-by: Durgadoss R
---
No great reason for using 12.
---
drivers/thermal/Kconfig | 14 ++
include/linux/thermal.h |6 +++---
2 files changed, 17
This patch has a dummy driver that can be used for
testing purposes. This patch is not for merge.
Signed-off-by: Durgadoss R
---
drivers/thermal/Kconfig|5 +
drivers/thermal/Makefile |3 +
drivers/thermal/thermal_test.c | 315
3
throttled, can help to bring down
the temperature of the hot spot.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_sys.c | 194 +
include/linux/thermal.h | 21 +
2 files changed, 215 insertions(+)
diff --git a/drivers/thermal
nghbo Zhang, Wei Ni for their feedback on the
RFC version.
Durgadoss R (8):
Thermal: Create sensor level APIs
Thermal: Create zone level APIs
Thermal: Add APIs to bind cdev to new zone structure
Thermal: Add Thermal_trip sysfs node
Thermal: Add 'thermal_map' sysfs node
Thermal: Ad
This patch creates new APIs to add/remove a
cdev to/from a zone. This patch does not change
the old cooling device implementation.
Signed-off-by: Durgadoss R
---
drivers/thermal/thermal_sys.c | 80 +
include/linux/thermal.h |8 +
2 files
52 matches
Mail list logo