Implement kernel based thermal management