diff options
Diffstat (limited to 'drivers/macintosh/windfarm_fcu_controls.c')
-rw-r--r-- | drivers/macintosh/windfarm_fcu_controls.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/macintosh/windfarm_fcu_controls.c b/drivers/macintosh/windfarm_fcu_controls.c index 871f8b4cf367..b3411edb324b 100644 --- a/drivers/macintosh/windfarm_fcu_controls.c +++ b/drivers/macintosh/windfarm_fcu_controls.c | |||
@@ -41,10 +41,10 @@ | |||
41 | * applied to the setpoint RPM speed, that is basically the | 41 | * applied to the setpoint RPM speed, that is basically the |
42 | * speed we proviously "asked" for. | 42 | * speed we proviously "asked" for. |
43 | * | 43 | * |
44 | * I'm not sure which of these Apple's algorithm is supposed | 44 | * I'm using 0 for now which is what therm_pm72 used to do and |
45 | * to use | 45 | * what Darwin -apparently- does based on observed behaviour. |
46 | */ | 46 | */ |
47 | #define RPM_PID_USE_ACTUAL_SPEED 1 | 47 | #define RPM_PID_USE_ACTUAL_SPEED 0 |
48 | 48 | ||
49 | /* Default min/max for pumps */ | 49 | /* Default min/max for pumps */ |
50 | #define CPU_PUMP_OUTPUT_MAX 3200 | 50 | #define CPU_PUMP_OUTPUT_MAX 3200 |
@@ -154,8 +154,6 @@ static int wf_fcu_fan_set_rpm(struct wf_control *ct, s32 value) | |||
154 | if (value > fan->max) | 154 | if (value > fan->max) |
155 | value = fan->max; | 155 | value = fan->max; |
156 | 156 | ||
157 | if (fan->target && fan->target == value) | ||
158 | return 0; | ||
159 | fan->target = value; | 157 | fan->target = value; |
160 | 158 | ||
161 | buf[0] = value >> (8 - shift); | 159 | buf[0] = value >> (8 - shift); |
@@ -213,8 +211,6 @@ static int wf_fcu_fan_set_pwm(struct wf_control *ct, s32 value) | |||
213 | if (value > fan->max) | 211 | if (value > fan->max) |
214 | value = fan->max; | 212 | value = fan->max; |
215 | 213 | ||
216 | if (fan->target && fan->target == value) | ||
217 | return 0; | ||
218 | fan->target = value; | 214 | fan->target = value; |
219 | 215 | ||
220 | value = (value * 2559) / 1000; | 216 | value = (value * 2559) / 1000; |