]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blobdiff - mm/workingset.c
ARM: dts: add Raspberry Pi 3 A+
[mirror_ubuntu-eoan-kernel.git] / mm / workingset.c
index d46f8c92aa2fe736a1248ae30e0fb73a17b58a3e..dcb994f2acc2e600f39e2338d16f7bd839aefd2d 100644 (file)
@@ -549,7 +549,7 @@ static int __init workingset_init(void)
         * double the initial memory by using totalram_pages as-is.
         */
        timestamp_bits = BITS_PER_LONG - EVICTION_SHIFT;
-       max_order = fls_long(totalram_pages - 1);
+       max_order = fls_long(totalram_pages() - 1);
        if (max_order > timestamp_bits)
                bucket_order = max_order - timestamp_bits;
        pr_info("workingset: timestamp_bits=%d max_order=%d bucket_order=%u\n",