summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/acpi/boot.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-02-20 20:05:05 +0200
committerIngo Molnar <mingo@kernel.org>2018-03-12 12:32:57 +0100
commit81b53e5ff21e09b42525cfa08f2b0af2b8c5f465 (patch)
treec20aad281b0430c3f00b71009212b10754d5f69f /arch/x86/kernel/acpi/boot.c
parent50beba07a0e42ebd4454adc97515a2a2a969645b (diff)
downloadlinux-81b53e5ff21e09b42525cfa08f2b0af2b8c5f465.tar.gz
linux-81b53e5ff21e09b42525cfa08f2b0af2b8c5f465.tar.bz2
linux-81b53e5ff21e09b42525cfa08f2b0af2b8c5f465.zip
ACPI, x86/boot: Introduce the ->reduced_hw_early_init() ACPI callback
Some ACPI hardware reduced platforms need to initialize certain devices defined by the ACPI hardware specification even though in principle those devices should not be present in an ACPI hardware reduced platform. To allow that to happen, make it possible to override the generic x86_init callbacks and provide a custom legacy_pic value, add a new ->reduced_hw_early_init() callback to struct x86_init_acpi and make acpi_reduced_hw_init() use it. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Cc: Eric Biederman <ebiederm@xmission.com> Cc: Juergen Gross <jgross@suse.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Rafael J . Wysocki <rafael.j.wysocki@intel.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-acpi@vger.kernel.org Link: http://lkml.kernel.org/r/20180220180506.65523-2-andriy.shevchenko@linux.intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/acpi/boot.c')
-rw-r--r--arch/x86/kernel/acpi/boot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
index baa084ecffdb..7a37d9357bc4 100644
--- a/arch/x86/kernel/acpi/boot.c
+++ b/arch/x86/kernel/acpi/boot.c
@@ -1390,7 +1390,7 @@ void __init acpi_generic_reduced_hw_init(void)
static void __init acpi_reduced_hw_init(void)
{
if (acpi_gbl_reduced_hardware)
- acpi_generic_reduced_hw_init();
+ x86_init.acpi.reduced_hw_early_init();
}
/*