aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/platform
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2013-10-31 12:24:59 -0400
committerMatt Fleming <matt.fleming@intel.com>2013-11-02 07:09:03 -0400
commitf4fccac05f7f6bacb8e481a84d175e85ffcf9fe2 (patch)
tree2a7827ef0e6d6ec194b30952c9f93a291d2893b2 /arch/x86/platform
parent72548e836b0c4abbb652e791dee9c91203a9a4c6 (diff)
x86/efi: Simplify EFI_DEBUG
... and lose one #ifdef .. #endif sandwich. Signed-off-by: Borislav Petkov <bp@suse.de> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'arch/x86/platform')
-rw-r--r--arch/x86/platform/efi/efi.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c
index 1d3372ac9c66..f396163b0402 100644
--- a/arch/x86/platform/efi/efi.c
+++ b/arch/x86/platform/efi/efi.c
@@ -51,7 +51,7 @@
51#include <asm/x86_init.h> 51#include <asm/x86_init.h>
52#include <asm/rtc.h> 52#include <asm/rtc.h>
53 53
54#define EFI_DEBUG 1 54#define EFI_DEBUG
55 55
56#define EFI_MIN_RESERVE 5120 56#define EFI_MIN_RESERVE 5120
57 57
@@ -398,9 +398,9 @@ int __init efi_memblock_x86_reserve_range(void)
398 return 0; 398 return 0;
399} 399}
400 400
401#if EFI_DEBUG
402static void __init print_efi_memmap(void) 401static void __init print_efi_memmap(void)
403{ 402{
403#ifdef EFI_DEBUG
404 efi_memory_desc_t *md; 404 efi_memory_desc_t *md;
405 void *p; 405 void *p;
406 int i; 406 int i;
@@ -415,8 +415,8 @@ static void __init print_efi_memmap(void)
415 md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT), 415 md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT),
416 (md->num_pages >> (20 - EFI_PAGE_SHIFT))); 416 (md->num_pages >> (20 - EFI_PAGE_SHIFT)));
417 } 417 }
418}
419#endif /* EFI_DEBUG */ 418#endif /* EFI_DEBUG */
419}
420 420
421void __init efi_reserve_boot_services(void) 421void __init efi_reserve_boot_services(void)
422{ 422{
@@ -696,10 +696,7 @@ void __init efi_init(void)
696 x86_platform.set_wallclock = efi_set_rtc_mmss; 696 x86_platform.set_wallclock = efi_set_rtc_mmss;
697 } 697 }
698#endif 698#endif
699
700#if EFI_DEBUG
701 print_efi_memmap(); 699 print_efi_memmap();
702#endif
703} 700}
704 701
705void __init efi_late_init(void) 702void __init efi_late_init(void)