1. A method comprising: while an integrated circuit is operating at a first frequency, selecting a second frequency for operation of the integrated circuit; prior to changing to the second frequency: obtaining a voltage value that corresponds to the second frequency and to a temperature value related to a temperature of the integrated circuit; estimating an amount of power consumed by the integrated circuit if operated at the second frequency and at the voltage value; and determining if the amount of power exceeds a predefined power limit; and operating the integrated circuit at a power level lower than the amount of power and corresponding to a third frequency different than the first frequency and different than the second frequency if the amount of power exceeds the predefined power limit, and otherwise operating the integrated circuit at a power level corresponding to the second frequency, wherein the third frequency is less than the second frequency if the amount of power corresponding to the second frequency is greater than the predefined power limit.