Changeset 248fc1a in mainline for generic/src/proc/thread.c


Ignore:
Timestamp:
2006-02-05T13:56:01Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
444ec64
Parents:
e22f561
Message:

Fixed some typos in slab allocator.
Scheduler now has better algorithm on load balancing.
Unfortunately it reveals deadlock in slab allocator :-/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/proc/thread.c

    re22f561 r248fc1a  
    138138        atomic_inc(&nrdy);
    139139        avg = atomic_get(&nrdy) / config.cpu_active;
    140 
    141         spinlock_lock(&cpu->lock);
    142         if ((++cpu->nrdy) > avg) {
    143                 /*
    144                  * If there are idle halted CPU's, this will wake them up.
    145                  */
    146                 ipi_broadcast(VECTOR_WAKEUP_IPI);
    147         }       
    148         spinlock_unlock(&cpu->lock);
     140        atomic_inc(&cpu->nrdy);
    149141
    150142        interrupts_restore(ipl);
Note: See TracChangeset for help on using the changeset viewer.