Application-driven method and apparatus for limiting power consumption in a processor-controlled hardware platform