You need to sign in or sign up before continuing.
  • P
    [CPUFREQ] Fix stale cpufreq_cpu_governor pointer · 90e41bac
    Prarit Bhargava 提交于
    Dave,
    
    Attached is an update of my patch against the cpufreq fixes branch.
    
    Before applying the patch I compiled and booted the tree to see if the panic
    was still there -- to my surprise it was not.  This is because of the conversion
    of cpufreq_cpu_governor to a char[].
    
    While the panic is kaput, the problem of stale data continues and my patch is
    still valid.  It is possible to end up with the wrong governor after hotplug
    events because CPUFREQ_DEFAULT_GOVERNOR is statically linked to a default,
    while the cpu siblings may have had a different governor assigned by a user.
    
    ie) the patch is still needed in order to keep the governors assigned
    properly when hotplugging devices
    Signed-off-by: NPrarit Bhargava <prarit@redhat.com>
    Signed-off-by: NDave Jones <davej@redhat.com>
    90e41bac
cpufreq.c 50.0 KB