summaryrefslogtreecommitdiffstats
path: root/drivers/macintosh/windfarm_cpufreq_clamp.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@us.ibm.com>2009-12-03 17:19:59 +0100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-12-09 07:09:31 +0100
commit1496e89ae2a0962748e55165a590fa3209c6f158 (patch)
tree7cc992051eae48946cf11fa9595447e5bb0cf7b6 /drivers/macintosh/windfarm_cpufreq_clamp.c
parentagp/uninorth: Unify U3 and pre-U3 insert_memory and remove_memory hooks. (diff)
downloadlinux-1496e89ae2a0962748e55165a590fa3209c6f158.tar.xz
linux-1496e89ae2a0962748e55165a590fa3209c6f158.zip
powerpc/therm_adt746x: Record pwm invert bit at module load time]
In commit 0512a9a8e277a9de2820211eef964473b714ae65, we unilaterally zero the "pwm invert" bit in the fan behavior configuration register. On my PowerBook G4, this results in the fans going to full speed at low temperature and shutting off at high temperature because the pwm invert bit is supposed to be set. Therefore, record the pwm invert bit at driver load time, and write the bit into the fan behavior control register. This restores correct behavior on my PBG4 and should work around the bit being set to the wrong value after suspend/resume (which is what the original patch was trying to fix). It also fixes a minor omission where the pwm invert bit correction is NOT performed when switching into automatic mode. Signed-off-by: Darrick J. Wong <djwong@us.ibm.com> CC: <stable@kernel.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/macintosh/windfarm_cpufreq_clamp.c')
0 files changed, 0 insertions, 0 deletions