aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic/vmlinux.lds.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-10-27 14:42:37 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-27 18:34:51 -0400
commit735a7ffb739b6efeaeb1e720306ba308eaaeb20e (patch)
tree6156c96aeae04e1fd789f07bdd839dca7eca611a /include/asm-generic/vmlinux.lds.h
parent61ce1efe6e40233663d27ab8ac9ba9710eebcaad (diff)
[PATCH] drivers: wait for threaded probes between initcall levels
The multithreaded-probing code has a problem: after one initcall level (eg, core_initcall) has been processed, we will then start processing the next level (postcore_initcall) while the kernel threads which are handling core_initcall are still executing. This breaks the guarantees which the layered initcalls previously gave us. IOW, we want to be multithreaded _within_ an initcall level, but not between different levels. Fix that up by causing the probing code to wait for all outstanding probes at one level to complete before we start processing the next level. Cc: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-generic/vmlinux.lds.h')
-rw-r--r--include/asm-generic/vmlinux.lds.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h
index e3e83bcaf710..9d873163a7ab 100644
--- a/include/asm-generic/vmlinux.lds.h
+++ b/include/asm-generic/vmlinux.lds.h
@@ -216,10 +216,17 @@
216 216
217#define INITCALLS \ 217#define INITCALLS \
218 *(.initcall1.init) \ 218 *(.initcall1.init) \
219 *(.initcall1s.init) \
219 *(.initcall2.init) \ 220 *(.initcall2.init) \
221 *(.initcall2s.init) \
220 *(.initcall3.init) \ 222 *(.initcall3.init) \
223 *(.initcall3s.init) \
221 *(.initcall4.init) \ 224 *(.initcall4.init) \
225 *(.initcall4s.init) \
222 *(.initcall5.init) \ 226 *(.initcall5.init) \
227 *(.initcall5s.init) \
223 *(.initcall6.init) \ 228 *(.initcall6.init) \
224 *(.initcall7.init) 229 *(.initcall6s.init) \
230 *(.initcall7.init) \
231 *(.initcall7s.init)
225 232