]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.4.75/x86-efi-don-t-use-u-efi-time-services-on-32-bit.patch
Linux 4.14.95
[thirdparty/kernel/stable-queue.git] / releases / 3.4.75 / x86-efi-don-t-use-u-efi-time-services-on-32-bit.patch
1 From 04bf9ba720fcc4fa313fa122b799ae0989b6cd50 Mon Sep 17 00:00:00 2001
2 From: Matthew Garrett <matthew.garrett@nebula.com>
3 Date: Fri, 29 Nov 2013 14:44:43 -0500
4 Subject: x86, efi: Don't use (U)EFI time services on 32 bit
5
6 From: Matthew Garrett <matthew.garrett@nebula.com>
7
8 commit 04bf9ba720fcc4fa313fa122b799ae0989b6cd50 upstream.
9
10 UEFI time services are often broken once we're in virtual mode. We were
11 already refusing to use them on 64-bit systems, but it turns out that
12 they're also broken on some 32-bit firmware, including the Dell Venue.
13 Disable them for now, we can revisit once we have the 1:1 mappings code
14 incorporated.
15
16 Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
17 Link: http://lkml.kernel.org/r/1385754283-2464-1-git-send-email-matthew.garrett@nebula.com
18 Cc: Matt Fleming <matt.fleming@intel.com>
19 Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
20 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
21
22 ---
23 arch/x86/platform/efi/efi.c | 7 -------
24 1 file changed, 7 deletions(-)
25
26 --- a/arch/x86/platform/efi/efi.c
27 +++ b/arch/x86/platform/efi/efi.c
28 @@ -744,13 +744,6 @@ void __init efi_init(void)
29
30 set_bit(EFI_MEMMAP, &x86_efi_facility);
31
32 -#ifdef CONFIG_X86_32
33 - if (efi_is_native()) {
34 - x86_platform.get_wallclock = efi_get_time;
35 - x86_platform.set_wallclock = efi_set_rtc_mmss;
36 - }
37 -#endif
38 -
39 #if EFI_DEBUG
40 print_efi_memmap();
41 #endif