With the huge increase in the use of mobile devices, there is growing interest in developing new, more efficient technologies that use fewer resources and offer their users more time to use them. In this work, we show how we developed an algorithm to build a new frequency regulator to manage the energy used by a computer's central processing unit. A comparison was also made with the regulator currently used in Linux distributions on the market, and the new regulator proved to be just as efficient as those already used in current versions of the Linux kernel.