Add setCpuFrequency.