hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/macintosh/windfarm_pm121.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Windfarm PowerMac thermal control. iMac G5 iSight
34 *
....@@ -6,13 +7,8 @@
67 * Bits & pieces from windfarm_pm81.c by (c) Copyright 2005 Benjamin
78 * Herrenschmidt, IBM Corp. <benh@kernel.crashing.org>
89 *
9
- * Released under the term of the GNU GPL v2.
10
- *
11
- *
12
- *
1310 * PowerMac12,1
1411 * ============
15
- *
1612 *
1713 * The algorithm used is the PID control algorithm, used the same way
1814 * the published Darwin code does, using the same values that are
....@@ -24,7 +20,6 @@
2420 * 17" while Model 3 is iMac G5 20". They do have both the same
2521 * controls with a tiny difference. The control-ids of hard-drive-fan
2622 * and cpu-fan is swapped.
27
- *
2823 *
2924 * Target Correction :
3025 *
....@@ -63,7 +58,6 @@
6358 * offset : -15650652
6459 * slope : 1565065
6560 *
66
- *
6761 * Target rubber-banding :
6862 *
6963 * Some controls have a target correction which depends on another
....@@ -75,7 +69,6 @@
7569 * greater than 0, then we correct the target value using :
7670 *
7771 * new_target = max (new_target, new_min >> 16)
78
- *
7972 *
8073 * # model_id : 2
8174 * control : cpu-fan
....@@ -89,11 +82,9 @@
8982 * offset : -32768000
9083 * slope : 65536
9184 *
92
- *
9385 * In order to have the moste efficient correction with those
9486 * dependencies, we must trigger HD loop before OD loop before CPU
9587 * loop.
96
- *
9788 *
9889 * The various control loops found in Darwin config file are:
9990 *
....@@ -191,12 +182,10 @@
191182 * sensors : cpu-temp, cpu-power
192183 * PID params : from SDB partition
193184 *
194
- *
195185 * CPU Slew control loop.
196186 *
197187 * control : cpufreq-clamp
198188 * sensor : cpu-temp
199
- *
200189 */
201190
202191 #undef DEBUG