Fix cpu frequency scaling