aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-06-25 03:20:30 -0400
committerIngo Molnar <mingo@kernel.org>2016-06-27 07:06:58 -0400
commitb684e9bc750b6349ff59f1b1ab4397cae255765f (patch)
tree3bfccae4aefd636018c52e228e3cd6e375a38a66
parent21f866257c7027f8f49bfde83f559f9e58f9ee93 (diff)
x86/efi: Remove the unused efi_get_time() function
Nothing calls the efi_get_time() function on x86, but it does suffer from the 32-bit time_t overflow in 2038. This removes the function, we can always put it back in case we need it later. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk> Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-efi@vger.kernel.org Link: http://lkml.kernel.org/r/1466839230-12781-8-git-send-email-matt@codeblueprint.co.uk Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--arch/x86/platform/efi/efi.c15
-rw-r--r--include/linux/efi.h1
2 files changed, 0 insertions, 16 deletions
diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c
index f93545e7dc54..d898b334ff46 100644
--- a/arch/x86/platform/efi/efi.c
+++ b/arch/x86/platform/efi/efi.c
@@ -98,21 +98,6 @@ static efi_status_t __init phys_efi_set_virtual_address_map(
98 return status; 98 return status;
99} 99}
100 100
101void efi_get_time(struct timespec *now)
102{
103 efi_status_t status;
104 efi_time_t eft;
105 efi_time_cap_t cap;
106
107 status = efi.get_time(&eft, &cap);
108 if (status != EFI_SUCCESS)
109 pr_err("Oops: efitime: can't read time!\n");
110
111 now->tv_sec = mktime(eft.year, eft.month, eft.day, eft.hour,
112 eft.minute, eft.second);
113 now->tv_nsec = 0;
114}
115
116void __init efi_find_mirror(void) 101void __init efi_find_mirror(void)
117{ 102{
118 efi_memory_desc_t *md; 103 efi_memory_desc_t *md;
diff --git a/include/linux/efi.h b/include/linux/efi.h
index 75d148dc9c3f..0174f28ce9b3 100644
--- a/include/linux/efi.h
+++ b/include/linux/efi.h
@@ -990,7 +990,6 @@ extern u64 efi_mem_desc_end(efi_memory_desc_t *md);
990extern int efi_mem_desc_lookup(u64 phys_addr, efi_memory_desc_t *out_md); 990extern int efi_mem_desc_lookup(u64 phys_addr, efi_memory_desc_t *out_md);
991extern void efi_initialize_iomem_resources(struct resource *code_resource, 991extern void efi_initialize_iomem_resources(struct resource *code_resource,
992 struct resource *data_resource, struct resource *bss_resource); 992 struct resource *data_resource, struct resource *bss_resource);
993extern void efi_get_time(struct timespec *now);
994extern void efi_reserve_boot_services(void); 993extern void efi_reserve_boot_services(void);
995extern int efi_get_fdt_params(struct efi_fdt_params *params); 994extern int efi_get_fdt_params(struct efi_fdt_params *params);
996extern struct kobject *efi_kobj; 995extern struct kobject *efi_kobj;