Rev 1855 | Rev 1999 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1855 | Rev 1901 | ||
|---|---|---|---|
| Line 61... | Line 61... | ||
| 61 | #include <interrupt.h> |
61 | #include <interrupt.h> |
| 62 | #include <console/kconsole.h> |
62 | #include <console/kconsole.h> |
| 63 | #include <security/cap.h> |
63 | #include <security/cap.h> |
| 64 | 64 | ||
| 65 | #ifdef CONFIG_SMP |
65 | #ifdef CONFIG_SMP |
| 66 | #include <arch/smp/mps.h> |
66 | #include <smp/smp.h> |
| 67 | #endif /* CONFIG_SMP */ |
67 | #endif /* CONFIG_SMP */ |
| 68 | 68 | ||
| 69 | #include <synch/waitq.h> |
69 | #include <synch/waitq.h> |
| 70 | #include <synch/spinlock.h> |
70 | #include <synch/spinlock.h> |
| 71 | 71 | ||
| Line 92... | Line 92... | ||
| 92 | 92 | ||
| 93 | interrupts_disable(); |
93 | interrupts_disable(); |
| 94 | 94 | ||
| 95 | #ifdef CONFIG_SMP |
95 | #ifdef CONFIG_SMP |
| 96 | if (config.cpu_count > 1) { |
96 | if (config.cpu_count > 1) { |
| - | 97 | waitq_initialize(&ap_completion_wq); |
|
| 97 | /* |
98 | /* |
| 98 | * Create the kmp thread and wait for its completion. |
99 | * Create the kmp thread and wait for its completion. |
| 99 | * cpu1 through cpuN-1 will come up consecutively and |
100 | * cpu1 through cpuN-1 will come up consecutively and |
| 100 | * not mess together with kcpulb threads. |
101 | * not mess together with kcpulb threads. |
| 101 | * Just a beautification. |
102 | * Just a beautification. |