x86: Don't use the EFI reboot method by default
authorMatthew Garrett <mjg@redhat.com>
Wed, 6 Jul 2011 20:52:37 +0000 (16:52 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 16 Jan 2013 21:45:09 +0000 (16:45 -0500)
commit02ce77862d85f8a87e56fdba5c237cd3dfc43a3f
tree86d92ae4abf25070c2bfb25f0770c80f51819e0e
parentf9f3d329a6370e2cbc6b34a2c290dc8cf0fd76a4
x86: Don't use the EFI reboot method by default

commit f70e957cda22d309c769805cbb932407a5232219 upstream.

Testing suggests that at least some Lenovos and some Intels will
fail to reboot via EFI, attempting to jump to an unmapped
physical address. In the long run we could handle this by
providing a page table with a 1:1 mapping of physical addresses,
but for now it's probably just easier to assume that ACPI or
legacy methods will be present and reboot via those.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Alan Cox <alan@linux.intel.com>
Link: http://lkml.kernel.org/r/1309985557-15350-1-git-send-email-mjg@redhat.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
[PG: in 2.6.34, file is x86/platform/efi/efi.c --> x86/kernel/efi.c]
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
arch/x86/kernel/efi.c