]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/x86/platform/efi/efi_64.c
efi: Disable interrupts around EFI calls, not in the epilog/prolog calls
[karo-tx-linux.git] / arch / x86 / platform / efi / efi_64.c
index 17e80d829df0391536ea49379108d1383a39c46f..427eb3540e5f9d55e6611221e416ef8e6429f3a8 100644 (file)
@@ -42,7 +42,6 @@
 #include <asm/time.h>
 
 static pgd_t *save_pgd __initdata;
-static unsigned long efi_flags __initdata;
 
 /*
  * We allocate runtime services regions bottom-up, starting from -4G, i.e.
@@ -88,7 +87,6 @@ void __init efi_call_phys_prolog(void)
                return;
 
        early_code_mapping_set_exec(1);
-       local_irq_save(efi_flags);
 
        n_pgds = DIV_ROUND_UP((max_pfn << PAGE_SHIFT), PGDIR_SIZE);
        save_pgd = kmalloc(n_pgds * sizeof(pgd_t), GFP_KERNEL);
@@ -116,7 +114,6 @@ void __init efi_call_phys_epilog(void)
                set_pgd(pgd_offset_k(pgd * PGDIR_SIZE), save_pgd[pgd]);
        kfree(save_pgd);
        __flush_tlb_all();
-       local_irq_restore(efi_flags);
        early_code_mapping_set_exec(0);
 }