There is such a function. AMD/ATI calls it PowerPlay.