Before people jump on the Intel-bashing bandwagon I'd like to point out that this is very similar to clkscrew for arm socs: https://www.usenix.org/system/files/conference/usenixsecurit...
Frequency scaling and power measurement should have no visible effects on execution, but in practice they do. The solution is to limit control to these knobs and degrade sensors.