KVM: x86/pmu: Use AMD64_RAW_EVENT_MASK for PERF_TYPE_RAW
[linux-2.6-microblaze.git] / arch / x86 / kvm / pmu.c
index cd923ba..b1a0299 100644 (file)
@@ -221,7 +221,7 @@ void reprogram_gp_counter(struct kvm_pmc *pmc, u64 eventsel)
        }
 
        if (type == PERF_TYPE_RAW)
-               config = eventsel & X86_RAW_EVENT_MASK;
+               config = eventsel & AMD64_RAW_EVENT_MASK;
 
        if (pmc->current_config == eventsel && pmc_resume_counter(pmc))
                return;