Subversion Repositories HelenOS

Rev

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

Rev 452 Rev 475
Line 134... Line 134...
134
    spinlock_lock(&r->lock);
134
    spinlock_lock(&r->lock);
135
    list_append(&t->rq_link, &r->rq_head);
135
    list_append(&t->rq_link, &r->rq_head);
136
    r->n++;
136
    r->n++;
137
    spinlock_unlock(&r->lock);
137
    spinlock_unlock(&r->lock);
138
 
138
 
139
    atomic_inc((int *) &nrdy);
139
    atomic_inc(&nrdy);
140
    avg = nrdy / config.cpu_active;
140
    avg = nrdy / config.cpu_active;
141
 
141
 
142
    spinlock_lock(&cpu->lock);
142
    spinlock_lock(&cpu->lock);
143
    if ((++cpu->nrdy) > avg) {
143
    if ((++cpu->nrdy) > avg) {
144
        /*
144
        /*