Re: [PATCH 2/5] ACPI: Reorder IPMI driver before any other ACPIdrivers

From: Matthew Garrett
Date: Mon Oct 22 2012 - 20:00:33 EST


On Mon, Oct 22, 2012 at 04:45:38PM -0700, Andrew Morton wrote:

> Relying upon link ordering is the old-fashioned way of doing things,
> and I have vague memories that it only works by luck - that there's no
> hard-and-fast rule that the linker has to obey what we think we asked
> it to do.
>
> The usual way of doing this sort of thing is to use the initcall
> priority levels - core_initcall(), postcore_initcall(), etc. Can that
> be done here?

Not really - some of this code can be built as modules, so it's mostly
module_init rather than anything from the initcall family.

--
Matthew Garrett | mjg59@xxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/