ACPI: Overriding ACPI tables via initrd only works with an initrd and on X86
authorThomas Renninger <trenn@suse.de>
Fri, 22 Feb 2013 13:12:22 +0000 (14:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Mar 2013 22:03:39 +0000 (06:03 +0800)
commit595aa2afac1f6cb2ab5e3c3a45b965fb400dc795
tree2058abed61ea265de7a19a68dad5572e60e41298
parentc5d6774c8df7a755c13e8c9e1d9306f4f8c8c452
ACPI: Overriding ACPI tables via initrd only works with an initrd and on X86

commit 565d956a7e191e95d81f515196951715f2616e6b upstream.

Reflect this dependency in Kconfig, to prevent build failures.

Shorten the config description as suggested by Borislav Petkov.

Finding a suitable memory area to store the modified table(s) has been
taken over from arch/x86/kernel/setup.c and makes use of max_low_pfn_mapped:
memblock_find_in_range(0, max_low_pfn_mapped,...)
This one is X86 specific. It may not be hard to extend this functionality
for other ACPI aware architectures if there is need for.

For now make this feature only available for X86 to avoid build failures on
IA64, compare with:
https://bugzilla.kernel.org/show_bug.cgi?id=54091

Signed-off-by: Thomas Renninger <trenn@suse.de>
Link: http://lkml.kernel.org/r/1361538742-67599-3-git-send-email-trenn@suse.de
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/Kconfig