• Dave Jones's avatar
    [CPUFREQ] Fix reset-to-max-speed on unloading of longhaul driver. · 000d3d05
    Dave Jones authored
    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: default avatarDave Jones <davej@redhat.com>
    000d3d05
longhaul.c 16.9 KB