x86/aperfperf: Make it correct on 32bit and UP kernels