Rev 548 | Rev 646 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 548 | Rev 623 | ||
---|---|---|---|
Line 64... | Line 64... | ||
64 | if (!cpus[i].stack) |
64 | if (!cpus[i].stack) |
65 | panic("malloc/cpus[%d].stack\n", i); |
65 | panic("malloc/cpus[%d].stack\n", i); |
66 | 66 | ||
67 | cpus[i].id = i; |
67 | cpus[i].id = i; |
68 | 68 | ||
- | 69 | spinlock_initialize(&cpus[i].lock, "cpu_t.lock"); |
|
- | 70 | ||
69 | #ifdef CONFIG_SMP |
71 | #ifdef CONFIG_SMP |
70 | waitq_initialize(&cpus[i].kcpulb_wq); |
72 | waitq_initialize(&cpus[i].kcpulb_wq); |
71 | #endif /* __SMP */ |
73 | #endif /* __SMP */ |
72 | 74 | ||
73 | for (j = 0; j < RQ_COUNT; j++) { |
75 | for (j = 0; j < RQ_COUNT; j++) { |
- | 76 | spinlock_initialize(&cpus[i].rq[j].lock, "rq_t.lock"); |
|
74 | list_initialize(&cpus[i].rq[j].rq_head); |
77 | list_initialize(&cpus[i].rq[j].rq_head); |
75 | } |
78 | } |
76 | } |
79 | } |
77 | 80 | ||
78 | #ifdef CONFIG_SMP |
81 | #ifdef CONFIG_SMP |