Skip to content

Commit e86001d

Browse files
committed
thermal: gov_bang_bang: Relocate regulation logic description
Move the regulation logic description from the bang_bang_trip_crossed() kerneldoc to the preamble. No functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Lukasz Luba <lukasz.luba@arm.com> Link: https://patch.msgid.link/4987649.31r3eYUQgx@rjwysocki.net [ rjw: Removed a trailing whitespace ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 06354d7 commit e86001d

File tree

1 file changed

+21
-22
lines changed

1 file changed

+21
-22
lines changed

drivers/thermal/gov_bang_bang.c

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,27 @@
77
* Based on step_wise.c with following Copyrights:
88
* Copyright (C) 2012 Intel Corp
99
* Copyright (C) 2012 Durgadoss R <durgadoss.r@intel.com>
10+
*
11+
* Regulation Logic: a two point regulation, deliver cooling state depending
12+
* on the previous state shown in this diagram:
13+
*
14+
* Fan: OFF ON
15+
*
16+
* |
17+
* |
18+
* trip_temp: +---->+
19+
* | | ^
20+
* | | |
21+
* | | Temperature
22+
* (trip_temp - hyst): +<----+
23+
* |
24+
* |
25+
* |
26+
*
27+
* * If the fan is not running and temperature exceeds trip_temp, the fan
28+
* gets turned on.
29+
* * In case the fan is running, temperature must fall below
30+
* (trip_temp - hyst) so that the fan gets turned off again.
1031
*/
1132

1233
#include <linux/thermal.h>
@@ -38,28 +59,6 @@ static void bang_bang_set_instance_target(struct thermal_instance *instance,
3859
* @tz: thermal_zone_device
3960
* @trip: the trip point
4061
* @crossed_up: whether or not the trip has been crossed on the way up
41-
*
42-
* Regulation Logic: a two point regulation, deliver cooling state depending
43-
* on the previous state shown in this diagram:
44-
*
45-
* Fan: OFF ON
46-
*
47-
* |
48-
* |
49-
* trip_temp: +---->+
50-
* | | ^
51-
* | | |
52-
* | | Temperature
53-
* (trip_temp - hyst): +<----+
54-
* |
55-
* |
56-
* |
57-
*
58-
* * If the fan is not running and temperature exceeds trip_temp, the fan
59-
* gets turned on.
60-
* * In case the fan is running, temperature must fall below
61-
* (trip_temp - hyst) so that the fan gets turned off again.
62-
*
6362
*/
6463
static void bang_bang_trip_crossed(struct thermal_zone_device *tz,
6564
const struct thermal_trip *trip,

0 commit comments

Comments
 (0)