• Viresh Kumar's avatar
    thermal: exynos: pass cpu_present_mask to cpufreq_cooling_register() · f3764e6c
    Viresh Kumar authored
    cpufreq_cooling_register() expects mask of all the CPUs where frequency
    constraint is applicable.
    
    This platform has more than one CPU to which these constraints will apply and so
    passing mask of only CPU0 wouldn't be sufficient. Also, this platform has a
    single cluster of CPUs and the constraint applies to all CPUs.
    
    If CPU0 is hoplugged out then we may face strange BUGs as cpu_cooling framework
    isn't aware of any siblings sharing clock line.
    
    Fix it by passing cpu_present_mask to cpufreq_cooling_register().
    
    Cc: Chanwoo Choi <cw00.choi@samsung.com>
    Cc: Kyungmin Park <kyungmin.park@samsung.com>
    Cc: Amit Daniel Kachhap <amit.daniel@samsung.com>
    Cc: Lukasz Majewski <l.majewski@samsung.com>
    Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
    Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
    f3764e6c
exynos_thermal_common.c 11.4 KB