@@ -4,8 +4,6 @@ Generic Thermal Sysfs driver How To
44
55Written by Sujith Thomas <sujith.thomas@intel.com>, Zhang Rui <rui.zhang@intel.com>
66
7- Updated: 2 January 2008
8-
97Copyright (c) 2008 Intel Corporation
108
119
@@ -38,23 +36,23 @@ temperature) and throttle appropriate devices.
3836
3937 ::
4038
41- struct thermal_zone_device
42- *thermal_zone_device_register(char *type,
43- int trips, int mask, void *devdata,
44- struct thermal_zone_device_ops *ops,
45- const struct thermal_zone_params *tzp,
46- int passive_delay, int polling_delay))
39+ struct thermal_zone_device *
40+ thermal_zone_device_register_with_trips(const char *type,
41+ const struct thermal_trip *trips,
42+ int num_trips, void *devdata,
43+ const struct thermal_zone_device_ops *ops,
44+ const struct thermal_zone_params *tzp,
45+ unsigned int passive_delay,
46+ unsigned int polling_delay)
4747
48- This interface function adds a new thermal zone device (sensor) to
48+ This interface function adds a new thermal zone device (sensor) to the
4949 /sys/class/thermal folder as `thermal_zone[0-*] `. It tries to bind all the
50- thermal cooling devices registered at the same time.
50+ thermal cooling devices registered to it at the same time.
5151
5252 type:
5353 the thermal zone type.
5454 trips:
55- the total number of trip points this thermal zone supports.
56- mask:
57- Bit string: If 'n'th bit is set, then trip point 'n' is writable.
55+ the table of trip points for this thermal zone.
5856 devdata:
5957 device private data
6058 ops:
@@ -67,32 +65,29 @@ temperature) and throttle appropriate devices.
6765 .get_temp:
6866 get the current temperature of the thermal zone.
6967 .set_trips:
70- set the trip points window. Whenever the current temperature
71- is updated, the trip points immediately below and above the
72- current temperature are found.
73- .get_mode:
74- get the current mode (enabled/disabled) of the thermal zone.
75-
76- - "enabled" means the kernel thermal management is
77- enabled.
78- - "disabled" will prevent kernel thermal driver action
79- upon trip points so that user applications can take
80- charge of thermal management.
81- .set_mode:
82- set the mode (enabled/disabled) of the thermal zone.
83- .get_trip_type:
84- get the type of certain trip point.
85- .get_trip_temp:
86- get the temperature above which the certain trip point
87- will be fired.
68+ set the trip points window. Whenever the current temperature
69+ is updated, the trip points immediately below and above the
70+ current temperature are found.
71+ .change_mode:
72+ change the mode (enabled/disabled) of the thermal zone.
73+ .set_trip_temp:
74+ set the temperature of a given trip point.
75+ .get_crit_temp:
76+ get the critical temperature for this thermal zone.
8877 .set_emul_temp:
89- set the emulation temperature which helps in debugging
90- different threshold temperature points.
78+ set the emulation temperature which helps in debugging
79+ different threshold temperature points.
80+ .get_trend:
81+ get the trend of most recent zone temperature changes.
82+ .hot:
83+ hot trip point crossing handler.
84+ .critical:
85+ critical trip point crossing handler.
9186 tzp:
9287 thermal zone platform parameters.
9388 passive_delay:
94- number of milliseconds to wait between polls when
95- performing passive cooling.
89+ number of milliseconds to wait between polls when performing passive
90+ cooling.
9691 polling_delay:
9792 number of milliseconds to wait between polls when checking
9893 whether trip points have been crossed (0 for interrupt driven systems).
0 commit comments