x86: use common aperfmperf_khz_on_cpu() to calculate KHz using APERF/MPERF