msm: thermal: Update the hotplug initialization
Hotplug initialization will trigger a hotplug if temperature stays above the trip threshold and will try to online if temperature is below the clear threshold. Since KTM does boot mitigation till thermal-engine is running, hotplug init can be called twice. First from post init script and second when the hotplug task is initialized. There is a possiblity the first init call can set the hotplug local mask and the second init call wont clear or update the mask with correct value if the temperature is between the hotplug trip and clear threshold. Update the hotplug init API to perform the check only if the hotplug task is initialized. Also the hotplug check will clear the hotplug local mask if the temperature is not above the trip threshold. Bug: 29464076 Change-Id: Ica1325f8aa65c338ea0e5b201f566607c3ddf904 Signed-off-by:Ram Chandrasekar <rkumbako@codeaurora.org> Signed-off-by:
Sivaram Vemapti <svempati@codeaurora.org> Signed-off-by:
mydongistiny <jaysonedson@gmail.com>
Loading
Please register or sign in to comment