diff options
| author | Feng Tang <feng.tang@intel.com> | 2009-10-20 00:54:02 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2009-10-27 07:35:48 -0400 |
| commit | 772be899bc022ef2b911c3611b487d417e3269c3 (patch) | |
| tree | 911d243c13b1ded8ff6f62ccbe70e4570cca24ec | |
| parent | 81766741fe1eee3884219e8daaf03f466f2ed52f (diff) | |
x86: Make EFI RTC function depend on 32bit again
The EFI RTC functions are only available on 32 bit. commit 7bd867df
(x86: Move get/set_wallclock to x86_platform_ops) removed the 32bit
dependency which leads to boot crashes on 64bit EFI systems.
Add the dependency back.
Solves: http://bugzilla.kernel.org/show_bug.cgi?id=14466
Tested-by: Matthew Garrett <mjg59@srcf.ucam.org>
Signed-off-by: Feng Tang <feng.tang@intel.com>
LKML-Reference: <20091020125402.028d66d5@feng-desktop>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
| -rw-r--r-- | arch/x86/kernel/efi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/efi.c b/arch/x86/kernel/efi.c index ad5bd988fb79..cdcfb122f256 100644 --- a/arch/x86/kernel/efi.c +++ b/arch/x86/kernel/efi.c | |||
| @@ -454,8 +454,10 @@ void __init efi_init(void) | |||
| 454 | if (add_efi_memmap) | 454 | if (add_efi_memmap) |
| 455 | do_add_efi_memmap(); | 455 | do_add_efi_memmap(); |
| 456 | 456 | ||
| 457 | #ifdef CONFIG_X86_32 | ||
| 457 | x86_platform.get_wallclock = efi_get_time; | 458 | x86_platform.get_wallclock = efi_get_time; |
| 458 | x86_platform.set_wallclock = efi_set_rtc_mmss; | 459 | x86_platform.set_wallclock = efi_set_rtc_mmss; |
| 460 | #endif | ||
| 459 | 461 | ||
| 460 | /* Setup for EFI runtime service */ | 462 | /* Setup for EFI runtime service */ |
| 461 | reboot_type = BOOT_EFI; | 463 | reboot_type = BOOT_EFI; |
