Rev 2275 | Rev 2721 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2275 | Rev 2319 | ||
|---|---|---|---|
| Line 643... | Line 643... | ||
| 643 | * call the function. |
643 | * call the function. |
| 644 | */ |
644 | */ |
| 645 | 645 | ||
| 646 | count_t i; |
646 | count_t i; |
| 647 | for (i = 0; i < config.cpu_count; i++) { |
647 | for (i = 0; i < config.cpu_count; i++) { |
| - | 648 | if (!cpus[i].active) |
|
| - | 649 | continue; |
|
| - | 650 | ||
| 648 | thread_t *t; |
651 | thread_t *t; |
| 649 | if ((t = thread_create((void (*)(void *)) cmd_call0, (void *) argv, TASK, THREAD_FLAG_WIRED, "call0", false))) { |
652 | if ((t = thread_create((void (*)(void *)) cmd_call0, (void *) argv, TASK, THREAD_FLAG_WIRED, "call0", false))) { |
| 650 | spinlock_lock(&t->lock); |
653 | spinlock_lock(&t->lock); |
| 651 | t->cpu = &cpus[i]; |
654 | t->cpu = &cpus[i]; |
| 652 | spinlock_unlock(&t->lock); |
655 | spinlock_unlock(&t->lock); |