Subversion Repositories HelenOS-historic

Rev

Rev 11 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11 Rev 15
Line 68... Line 68...
68
         * Create the kmp thread and wait for its completion.
68
         * Create the kmp thread and wait for its completion.
69
         * cpu1 through cpuN-1 will come up consecutively and
69
         * cpu1 through cpuN-1 will come up consecutively and
70
         * not mess together with kcpulb and klwtm threads.
70
         * not mess together with kcpulb and klwtm threads.
71
         * Just a beautification.
71
         * Just a beautification.
72
         */
72
         */
73
        if (t = thread_create(kmp, NULL, the->task, 0)) {
73
        if (t = thread_create(kmp, NULL, TASK, 0)) {
74
            spinlock_lock(&t->lock);
74
            spinlock_lock(&t->lock);
75
            t->flags |= X_WIRED;
75
            t->flags |= X_WIRED;
76
            t->cpu = &cpus[0];
76
            t->cpu = &cpus[0];
77
            spinlock_unlock(&t->lock);
77
            spinlock_unlock(&t->lock);
78
            thread_ready(t);
78
            thread_ready(t);
Line 93... Line 93...
93
            /*
93
            /*
94
         * For each CPU, create its load balancing thread.
94
         * For each CPU, create its load balancing thread.
95
         */
95
         */
96
        for (i = 0; i < config.cpu_count; i++) {
96
        for (i = 0; i < config.cpu_count; i++) {
97
 
97
 
98
            if (t = thread_create(kcpulb, NULL, the->task, 0)) {
98
            if (t = thread_create(kcpulb, NULL, TASK, 0)) {
99
                spinlock_lock(&t->lock);           
99
                spinlock_lock(&t->lock);           
100
                t->flags |= X_WIRED;
100
                t->flags |= X_WIRED;
101
                t->cpu = &cpus[i];
101
                t->cpu = &cpus[i];
102
                spinlock_unlock(&t->lock);
102
                spinlock_unlock(&t->lock);
103
                thread_ready(t);
103
                thread_ready(t);