]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/init.h
Merge branch 'master' of git://eden-feed.erg.abdn.ac.uk/net-2.6
[linux-2.6-omap-h63xx.git] / include / linux / init.h
index 42ae95411a93510433c25c31b03b0b28f095869c..11b84e1060532ecf62f73e3151b9f6eaed043c8b 100644 (file)
@@ -169,6 +169,13 @@ extern void (*late_time_init)(void);
        static initcall_t __initcall_##fn##id __used \
        __attribute__((__section__(".initcall" level ".init"))) = fn
 
+/*
+ * Early initcalls run before initializing SMP.
+ *
+ * Only for built-in code, not modules.
+ */
+#define early_initcall(fn)             __define_initcall("early",fn,early)
+
 /*
  * A "pure" initcall has no dependencies on anything else, and purely
  * initializes variables that couldn't be statically initialized.