change no_turbo

C
echo 1 | sudo tee /sys/devices/system/cpu/intel_pstate/no_turbo
Source

Also in C: