csky: Fixup csky_pmu.max_period assignment
[sfrench/cifs-2.6.git] / arch / csky / kernel / perf_event.c
index 4c1a1934d76ab6447c583126828f984b887afc13..7570109cddc6a6455dd282b774a5095fedf5a597 100644 (file)
@@ -1306,7 +1306,7 @@ int csky_pmu_device_probe(struct platform_device *pdev,
                                 &csky_pmu.count_width)) {
                csky_pmu.count_width = DEFAULT_COUNT_WIDTH;
        }
-       csky_pmu.max_period = BIT(csky_pmu.count_width) - 1;
+       csky_pmu.max_period = BIT_ULL(csky_pmu.count_width) - 1;
 
        csky_pmu.plat_device = pdev;