kaiser: add "nokaiser" boot option, using ALTERNATIVE
[pandora-kernel.git] / arch / x86 / kernel / espfix_64.c
index 14cd73b..a1944fa 100644 (file)
@@ -135,9 +135,10 @@ void __init init_espfix_bsp(void)
         * area to ensure it is mapped into the shadow user page
         * tables.
         */
-       if (IS_ENABLED(CONFIG_KAISER))
+       if (kaiser_enabled) {
                set_pgd(native_get_shadow_pgd(pgd_p),
                        __pgd(_KERNPG_TABLE | __pa((pud_t *)espfix_pud_page)));
+       }
 
        /* Randomize the locations */
        init_espfix_random();