Running Average Power Limit (RAPL) is a technology in Intel processors used to measure and cap power consumption of the processor.
This is exposed in the Linux kernel via powercap, the Power Capping Framework.
https://docs.kernel.org/power/powercap/powercap.html