Subversion Repositories HelenOS-historic

Rev

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

Rev 534 Rev 615
Line 90... Line 90...
90
        spinlock_lock(&CPU->lock);
90
        spinlock_lock(&CPU->lock);
91
        CPU->needs_relink++;
91
        CPU->needs_relink++;
92
        spinlock_unlock(&CPU->lock);   
92
        spinlock_unlock(&CPU->lock);   
93
   
93
   
94
        spinlock_lock(&THREAD->lock);
94
        spinlock_lock(&THREAD->lock);
95
        if (ticks = THREAD->ticks)
95
        if ((ticks = THREAD->ticks))
96
            THREAD->ticks--;
96
            THREAD->ticks--;
97
        spinlock_unlock(&THREAD->lock);
97
        spinlock_unlock(&THREAD->lock);
98
       
98
       
99
        if (!ticks && !PREEMPTION_DISABLED) {
99
        if (!ticks && !PREEMPTION_DISABLED) {
100
            scheduler();
100
            scheduler();