perf/x86/intel: ignore CondChgd bit to avoid false NMI handling
[platform/adaptation/renesas_rcar/renesas_kernel.git] / arch / x86 / kernel / cpu / perf_event_intel.c
index aa333d9..1340ebf 100644 (file)
@@ -1383,6 +1383,15 @@ again:
        intel_pmu_lbr_read();
 
        /*
+        * CondChgd bit 63 doesn't mean any overflow status. Ignore
+        * and clear the bit.
+        */
+       if (__test_and_clear_bit(63, (unsigned long *)&status)) {
+               if (!status)
+                       goto done;
+       }
+
+       /*
         * PEBS overflow sets bit 62 in the global status register
         */
        if (__test_and_clear_bit(62, (unsigned long *)&status)) {