Thermal: Make thermal_cdev_update as a global function