|
7 | 7 | * Based on step_wise.c with following Copyrights:
|
8 | 8 | * Copyright (C) 2012 Intel Corp
|
9 | 9 | * 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. |
10 | 31 | */
|
11 | 32 |
|
12 | 33 | #include <linux/thermal.h>
|
@@ -38,28 +59,6 @@ static void bang_bang_set_instance_target(struct thermal_instance *instance,
|
38 | 59 | * @tz: thermal_zone_device
|
39 | 60 | * @trip: the trip point
|
40 | 61 | * @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 |
| - * |
63 | 62 | */
|
64 | 63 | static void bang_bang_trip_crossed(struct thermal_zone_device *tz,
|
65 | 64 | const struct thermal_trip *trip,
|
|
0 commit comments