s390/mm: make hugepages_supported a boot time decision
[cascardo/linux.git] / arch / s390 / kernel / setup.c
index af4f41d..73941bf 100644 (file)
@@ -880,6 +880,8 @@ void __init setup_arch(char **cmdline_p)
         */
        setup_hwcaps();
 
+       HPAGE_SHIFT = MACHINE_HAS_HPAGE ? 20 : 0;
+
        /*
         * Create kernel page tables and switch to virtual addressing.
         */