System level power and thermal management on embedded processors