Rename FREQ to CPU_FREQ and move to front.
Fix compile error.