Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965610AbbLOWRJ (ORCPT ); Tue, 15 Dec 2015 17:17:09 -0500 Received: from mail-pf0-f170.google.com ([209.85.192.170]:35782 "EHLO mail-pf0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965592AbbLOWRE (ORCPT ); Tue, 15 Dec 2015 17:17:04 -0500 From: "Luis R. Rodriguez" To: hpa@zytor.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, konrad.wilk@oracle.com Cc: rusty@rustcorp.com.au, luto@amacapital.net, boris.ostrovsky@oracle.com, mcb30@ipxe.org, jgross@suse.com, JBeulich@suse.com, joro@8bytes.org, ryabinin.a.a@gmail.com, andreyknvl@google.com, long.wanglong@huawei.com, qiuxishi@huawei.com, aryabinin@virtuozzo.com, mchehab@osg.samsung.com, valentinrothberg@gmail.com, peter.senna@gmail.com, mcgrof@suse.com, x86@kernel.org, xen-devel@lists.xensource.com, linux-kernel@vger.kernel.org Subject: [RFC v1 6/8] x86/init: use linker table for i386 early setup Date: Tue, 15 Dec 2015 14:16:35 -0800 Message-Id: <1450217797-19295-7-git-send-email-mcgrof@do-not-panic.com> X-Mailer: git-send-email 2.6.1 In-Reply-To: <1450217797-19295-1-git-send-email-mcgrof@do-not-panic.com> References: <1450217797-19295-1-git-send-email-mcgrof@do-not-panic.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1470 Lines: 49 From: "Luis R. Rodriguez" This also annotates this is only used for PC and lguest hardware subarchitectures. Signed-off-by: Luis R. Rodriguez --- arch/x86/kernel/head32.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/head32.c b/arch/x86/kernel/head32.c index 768fa3888066..1db8eec5b0e2 100644 --- a/arch/x86/kernel/head32.c +++ b/arch/x86/kernel/head32.c @@ -21,12 +21,15 @@ #include #include -static void __init i386_default_early_setup(void) +static void __init i386_set_setup_funcs(void) { /* Initialize 32bit specific setup functions */ x86_init.resources.reserve_resources = i386_reserve_resources; x86_init.mpparse.setup_ioapic_ids = setup_ioapic_ids_from_mpc; } +x86_init_early(BIT(X86_SUBARCH_PC) | + BIT(X86_SUBARCH_LGUEST), + NULL, NULL, i386_set_setup_funcs); asmlinkage __visible void __init i386_start_kernel(void) { @@ -41,9 +44,6 @@ asmlinkage __visible void __init i386_start_kernel(void) case X86_SUBARCH_CE4100: x86_ce4100_early_setup(); break; - default: - i386_default_early_setup(); - break; } x86_init_fn_init_tables(); -- 2.6.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/