We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d6daa2 commit ad5013dCopy full SHA for ad5013d
arch/x86/events/intel/core.c
@@ -3987,7 +3987,7 @@ __init int intel_pmu_init(void)
3987
x86_pmu.num_counters, INTEL_PMC_MAX_GENERIC);
3988
x86_pmu.num_counters = INTEL_PMC_MAX_GENERIC;
3989
}
3990
- x86_pmu.intel_ctrl = (1 << x86_pmu.num_counters) - 1;
+ x86_pmu.intel_ctrl = (1ULL << x86_pmu.num_counters) - 1;
3991
3992
if (x86_pmu.num_counters_fixed > INTEL_PMC_MAX_FIXED) {
3993
WARN(1, KERN_ERR "hw perf events fixed %d > max(%d), clipping!",
0 commit comments