aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/platform/efi
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-01-03 19:08:48 -0500
committerMatt Fleming <matt.fleming@intel.com>2014-03-04 11:16:17 -0500
commit9b7d204982cf6e4e5b9b0f8bff151e48250cce58 (patch)
tree49711568a11b8831835de6fe6e8683bdc9d576c7 /arch/x86/platform/efi
parent5db80c65140c6502d5c2345d0b0fa166eecedc61 (diff)
x86/efi: Style neatening
Coalesce formats and remove spaces before tabs. Move __initdata after the variable declaration. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'arch/x86/platform/efi')
-rw-r--r--arch/x86/platform/efi/efi.c26
1 files changed, 11 insertions, 15 deletions
diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c
index dc1dd6d09dec..876dc5b9e4a3 100644
--- a/arch/x86/platform/efi/efi.c
+++ b/arch/x86/platform/efi/efi.c
@@ -67,7 +67,7 @@ struct efi_memory_map memmap;
67static struct efi efi_phys __initdata; 67static struct efi efi_phys __initdata;
68static efi_system_table_t efi_systab __initdata; 68static efi_system_table_t efi_systab __initdata;
69 69
70static __initdata efi_config_table_type_t arch_tables[] = { 70static efi_config_table_type_t arch_tables[] __initdata = {
71#ifdef CONFIG_X86_UV 71#ifdef CONFIG_X86_UV
72 {UV_SYSTEM_TABLE_GUID, "UVsystab", &efi.uv_systab}, 72 {UV_SYSTEM_TABLE_GUID, "UVsystab", &efi.uv_systab},
73#endif 73#endif
@@ -76,7 +76,7 @@ static __initdata efi_config_table_type_t arch_tables[] = {
76 76
77u64 efi_setup; /* efi setup_data physical address */ 77u64 efi_setup; /* efi setup_data physical address */
78 78
79static bool __initdata disable_runtime = false; 79static bool disable_runtime __initdata = false;
80static int __init setup_noefi(char *arg) 80static int __init setup_noefi(char *arg)
81{ 81{
82 disable_runtime = true; 82 disable_runtime = true;
@@ -263,9 +263,9 @@ static efi_status_t __init phys_efi_get_time(efi_time_t *tm,
263int efi_set_rtc_mmss(const struct timespec *now) 263int efi_set_rtc_mmss(const struct timespec *now)
264{ 264{
265 unsigned long nowtime = now->tv_sec; 265 unsigned long nowtime = now->tv_sec;
266 efi_status_t status; 266 efi_status_t status;
267 efi_time_t eft; 267 efi_time_t eft;
268 efi_time_cap_t cap; 268 efi_time_cap_t cap;
269 struct rtc_time tm; 269 struct rtc_time tm;
270 270
271 status = efi.get_time(&eft, &cap); 271 status = efi.get_time(&eft, &cap);
@@ -283,9 +283,8 @@ int efi_set_rtc_mmss(const struct timespec *now)
283 eft.second = tm.tm_sec; 283 eft.second = tm.tm_sec;
284 eft.nanosecond = 0; 284 eft.nanosecond = 0;
285 } else { 285 } else {
286 printk(KERN_ERR 286 pr_err("%s: Invalid EFI RTC value: write of %lx to EFI RTC failed\n",
287 "%s: Invalid EFI RTC value: write of %lx to EFI RTC failed\n", 287 __func__, nowtime);
288 __FUNCTION__, nowtime);
289 return -1; 288 return -1;
290 } 289 }
291 290
@@ -401,8 +400,7 @@ static void __init print_efi_memmap(void)
401 p < memmap.map_end; 400 p < memmap.map_end;
402 p += memmap.desc_size, i++) { 401 p += memmap.desc_size, i++) {
403 md = p; 402 md = p;
404 pr_info("mem%02u: type=%u, attr=0x%llx, " 403 pr_info("mem%02u: type=%u, attr=0x%llx, range=[0x%016llx-0x%016llx) (%lluMB)\n",
405 "range=[0x%016llx-0x%016llx) (%lluMB)\n",
406 i, md->type, md->attribute, md->phys_addr, 404 i, md->type, md->attribute, md->phys_addr,
407 md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT), 405 md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT),
408 (md->num_pages >> (20 - EFI_PAGE_SHIFT))); 406 (md->num_pages >> (20 - EFI_PAGE_SHIFT)));
@@ -434,9 +432,8 @@ void __init efi_reserve_boot_services(void)
434 memblock_is_region_reserved(start, size)) { 432 memblock_is_region_reserved(start, size)) {
435 /* Could not reserve, skip it */ 433 /* Could not reserve, skip it */
436 md->num_pages = 0; 434 md->num_pages = 0;
437 memblock_dbg("Could not reserve boot range " 435 memblock_dbg("Could not reserve boot range [0x%010llx-0x%010llx]\n",
438 "[0x%010llx-0x%010llx]\n", 436 start, start+size-1);
439 start, start+size-1);
440 } else 437 } else
441 memblock_reserve(start, size); 438 memblock_reserve(start, size);
442 } 439 }
@@ -572,8 +569,7 @@ static int __init efi_systab_init(void *phys)
572 return -EINVAL; 569 return -EINVAL;
573 } 570 }
574 if ((efi.systab->hdr.revision >> 16) == 0) 571 if ((efi.systab->hdr.revision >> 16) == 0)
575 pr_err("Warning: System table version " 572 pr_err("Warning: System table version %d.%02d, expected 1.00 or greater!\n",
576 "%d.%02d, expected 1.00 or greater!\n",
577 efi.systab->hdr.revision >> 16, 573 efi.systab->hdr.revision >> 16,
578 efi.systab->hdr.revision & 0xffff); 574 efi.systab->hdr.revision & 0xffff);
579 575