OSDN Git Service

perf/x86/intel: Don't accidentally clear high bits in bdw_limit_period()
[android-x86/kernel.git] / arch / x86 / events / intel / core.c
index 0bd0c1c..6f353a8 100644 (file)
@@ -3025,7 +3025,7 @@ static unsigned bdw_limit_period(struct perf_event *event, unsigned left)
                        X86_CONFIG(.event=0xc0, .umask=0x01)) {
                if (left < 128)
                        left = 128;
-               left &= ~0x3fu;
+               left &= ~0x3fULL;
        }
        return left;
 }