[PATCH] Allow early_param and identical __setup to exist
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 26 Sep 2006 08:52:32 +0000 (10:52 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Tue, 26 Sep 2006 08:52:32 +0000 (10:52 +0200)
commit33df0d19ea425d28bd5afb48898af32237fe81af
tree98305a70ad02fd680fd1bb21eedb08c51df17823
parent9ca33eb6981549c0d1b7aea7f99f1ba602161356
[PATCH] Allow early_param and identical __setup to exist

We currently assume that boot parameters which are handled by
early_param() will not overlap boot parameters handled by __setup: if
they do, behaviour is dependent on link order, usually meaning __setup
will not get called.

ACPI wants to use early_param("pci"), and pci uses __setup("pci="), so
we modify the core to let them coexist: "pci=noacpi" will now get
passed to both.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andi Kleen <ak@suse.de>
init/main.c