]> git.hungrycats.org Git - linux/commit
[CPUFREQ] Fix reset-to-max-speed on unloading of longhaul driver.
authorDave Jones <davej@redhat.com>
Tue, 24 Aug 2004 19:21:37 +0000 (20:21 +0100)
committerDave Jones <davej@delerium.codemonkey.org.uk>
Tue, 24 Aug 2004 19:21:37 +0000 (20:21 +0100)
commit000d3d051300cce0e18abd1412767b269ab35774
tree5c79847fcf3b24f28bc6715452e919c945d3f269
parent2bc449c5109043c82c27498abf2c74e228eb2564
[CPUFREQ] Fix reset-to-max-speed on unloading of longhaul driver.

From: Sven Traenkle

The second part adresses a problem of resetting the max cpu-freq when
unloading the driver. This didn't work for my cpu and I doubt it does
for other. There is no need to pass the computed index of the max.
multiplier in the clock_ratio[] table to longhault_table[] cause the
longhaul_setstate function works with the clock_ratio[] index.

Changing the while loop to a for loop with upper limit isn't actually
necessary as long as the driver is bug free, but thats IMHO not yet the
case, so I suggest this change in order to not loop endlessly or read
beyond the limits of the clock_ratio array.

Signed-off-by: Dave Jones <davej@redhat.com>
arch/i386/kernel/cpu/cpufreq/longhaul.c