x86: use cpu_khz for loops_per_jiffy calculation, cleanup