version 1.2, 2021/07/27 23:38:42 |
version 1.3, 2021/07/28 00:59:10 |
Line 490 fcu_adjust(void *cookie) |
|
Line 490 fcu_adjust(void *cookie) |
|
sc->sc_pwm = FALSE; |
sc->sc_pwm = FALSE; |
for (i = 0; i < FCU_ZONE_COUNT; i++) |
for (i = 0; i < FCU_ZONE_COUNT; i++) |
fancontrol_adjust_zone(&sc->sc_zones[i]); |
fancontrol_adjust_zone(&sc->sc_zones[i]); |
kpause("fanctrl", true, mstohz(sc->sc_pwm ? 1000 : 5000), NULL); |
/* |
|
* take a shorter nap if we're in the proccess of adjusting a |
|
* PWM fan, which relies on measuring speed and then changing |
|
* its duty cycle until we're reasonable close to the target |
|
* speed |
|
*/ |
|
kpause("fanctrl", true, mstohz(sc->sc_pwm ? 1000 : 2000), NULL); |
} |
} |
kthread_exit(0); |
kthread_exit(0); |
} |
} |