Subversion Repositories HelenOS

Rev

Rev 3745 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3745 Rev 4679
Line 263... Line 263...
263
    spinlock_unlock(&r->lock);
263
    spinlock_unlock(&r->lock);
264
 
264
 
265
    atomic_inc(&nrdy);
265
    atomic_inc(&nrdy);
266
    avg = atomic_get(&nrdy) / config.cpu_active;
266
    avg = atomic_get(&nrdy) / config.cpu_active;
267
    atomic_inc(&cpu->nrdy);
267
    atomic_inc(&cpu->nrdy);
-
 
268
    if (cpu->arch.exec_unit)
-
 
269
        atomic_inc(&(cpu->arch.exec_unit->nrdy));
268
 
270
 
269
    interrupts_restore(ipl);
271
    interrupts_restore(ipl);
270
}
272
}
271
 
273
 
272
/** Create new thread
274
/** Create new thread