msm: thermal: improve some codes.