Based off code from the libcastor (but does not change the video mode).
This is a standalone binary, it does not rely on any other libs like libcastor.

Usage:
./cpufreq --freq <mhz>
./cpufreq --freq 600

Where <mhz> is the number in mhz

libcastor by Orkie
cpufreq by Pickle