x86/smp: Move APERF/MPERF code where it belongs