• Zhang Rui's avatar
    Thermal: thermal zone governor fix · f2234bcd
    Zhang Rui authored
    This patch does a cleanup about the thermal zone govenor,
    setting and make the following rule.
    1. For thermal zone devices that are registered w/o tz->tzp,
       they can use the default thermal governor only.
    2. For thermal zone devices w/ governor name specified in
       tz->tzp->governor_name, we will use the default govenor
       if the governor specified is not available at the moment,
       and update tz->governor when the matched governor is registered.
    
    This also fixes a problem that OF registered thermal zones
    are running with no governor.
    Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
    Acked-by: default avatarJavi Merino <javi.merino@arm.com>
    f2234bcd
thermal_core.c 47.1 KB