Changeset bc1089a in mainline for src


Ignore:
Timestamp:
2005-09-02T17:57:11Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
da7d770
Parents:
649d96b
Message:

Make atomic_dec() and atomic_inc() take (volatile int *) argument, not (volatile count_t *).

Location:
src/proc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/proc/scheduler.c

    r649d96b rbc1089a  
    150150                spinlock_unlock(&CPU->lock);
    151151
    152                 atomic_dec(&nrdy);
     152                atomic_dec((int *) &nrdy);
    153153                r->n--;
    154154
  • src/proc/thread.c

    r649d96b rbc1089a  
    137137        spinlock_unlock(&r->lock);
    138138
    139         atomic_inc(&nrdy);
     139        atomic_inc((int *) &nrdy);
    140140        avg = nrdy / config.cpu_active;
    141141
Note: See TracChangeset for help on using the changeset viewer.