Merge tag 'dm-9oct18' of git://git.denx.de/u-boot-dm
[platform/kernel/u-boot.git] / arch / x86 / cpu / coreboot / coreboot.c
index a6fd3a8..aaf0d07 100644 (file)
@@ -55,10 +55,10 @@ static void board_final_cleanup(void)
        if (top_type == MTRR_TYPE_WRPROT) {
                struct mtrr_state state;
 
-               mtrr_open(&state);
+               mtrr_open(&state, true);
                wrmsrl(MTRR_PHYS_BASE_MSR(top_mtrr), 0);
                wrmsrl(MTRR_PHYS_MASK_MSR(top_mtrr), 0);
-               mtrr_close(&state);
+               mtrr_close(&state, true);
        }
 
        if (!fdtdec_get_config_bool(gd->fdt_blob, "u-boot,no-apm-finalize")) {