Subversion Repositories HelenOS-historic

Rev

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

Rev 1104 Rev 1115
Line 560... Line 560...
560
                spinlock_lock(&t->lock);
560
                spinlock_lock(&t->lock);
561
#ifdef KCPULB_VERBOSE
561
#ifdef KCPULB_VERBOSE
562
                printf("kcpulb%d: TID %d -> cpu%d, nrdy=%d, avg=%d\n", CPU->id, t->tid, CPU->id, atomic_get(&CPU->nrdy), atomic_get(&nrdy) / config.cpu_active);
562
                printf("kcpulb%d: TID %d -> cpu%d, nrdy=%d, avg=%d\n", CPU->id, t->tid, CPU->id, atomic_get(&CPU->nrdy), atomic_get(&nrdy) / config.cpu_active);
563
#endif
563
#endif
564
                t->flags |= X_STOLEN;
564
                t->flags |= X_STOLEN;
-
 
565
                t->state = Entering;
565
                spinlock_unlock(&t->lock);
566
                spinlock_unlock(&t->lock);
566
   
567
   
567
                thread_ready(t);
568
                thread_ready(t);
568
 
569
 
569
                interrupts_restore(ipl);
570
                interrupts_restore(ipl);