On Thu, Dec 17, 2015 at 3:46 PM, Luis R. Rodriguez <mcg...@suse.com> wrote: > solutions such > as those devised on the IOMMU init stuff do memmove() for sorting depending on > semantics defined (in the simplest case here so far dependency between init > sequences), this makes each set of sequences very subsystem specific
I should also note -- since the sort uses memmove() we're constrained to using run time sort only once we can ensure the kernel can do that without issues. I'd hope x86_64_start_reservations() is a safe place, if not please let me know. Likewise, since one prospect here is to bring further strong subarchitecture semantics even earlier (help appreciated), say as early as possible in x86_64_start_kernel(), it'd be nice to know the earliest memmove() is safe there. In this case the solution doesn't yet make use of calls in between x86_64_start_kernel() and x86_64_start_reservations() but if it could (we'd need a way for x86_init_fn_early_init() to access the subarchitecture, help appreciated) we *might* in the future want run time sort this early. It might still be possible to *not* do a run time sort until later so long as the priority level linker sort mechanism suffices for all early init routines. That's another possibility, should memmove() be a problem that early. Luis -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/