diff options
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/efi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/efi.c b/arch/x86/kernel/efi.c index 32dd62b36ff7..b4d523276f40 100644 --- a/arch/x86/kernel/efi.c +++ b/arch/x86/kernel/efi.c | |||
@@ -428,9 +428,6 @@ void __init efi_enter_virtual_mode(void) | |||
428 | else | 428 | else |
429 | va = efi_ioremap(md->phys_addr, size); | 429 | va = efi_ioremap(md->phys_addr, size); |
430 | 430 | ||
431 | if (md->attribute & EFI_MEMORY_WB) | ||
432 | set_memory_uc(md->virt_addr, size); | ||
433 | |||
434 | md->virt_addr = (u64) (unsigned long) va; | 431 | md->virt_addr = (u64) (unsigned long) va; |
435 | 432 | ||
436 | if (!va) { | 433 | if (!va) { |
@@ -439,6 +436,9 @@ void __init efi_enter_virtual_mode(void) | |||
439 | continue; | 436 | continue; |
440 | } | 437 | } |
441 | 438 | ||
439 | if (!(md->attribute & EFI_MEMORY_WB)) | ||
440 | set_memory_uc(md->virt_addr, size); | ||
441 | |||
442 | systab = (u64) (unsigned long) efi_phys.systab; | 442 | systab = (u64) (unsigned long) efi_phys.systab; |
443 | if (md->phys_addr <= systab && systab < end) { | 443 | if (md->phys_addr <= systab && systab < end) { |
444 | systab += md->virt_addr - md->phys_addr; | 444 | systab += md->virt_addr - md->phys_addr; |