Changeset 59e07c91 in mainline for generic/src


Ignore:
Timestamp:
2005-11-10T13:56:26Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0172eba
Parents:
13fe013
Message:

Define atomic_t type.

Location:
generic/src/proc
Files:
2 edited

Legend:

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

    r13fe013 r59e07c91  
    4949#include <debug.h>
    5050
    51 volatile count_t nrdy;
     51atomic_t nrdy;
    5252
    5353
     
    182182                spinlock_unlock(&CPU->lock);
    183183
    184                 atomic_dec((int *) &nrdy);
     184                atomic_dec(&nrdy);
    185185                r->n--;
    186186
     
    558558                                        spinlock_unlock(&cpu->lock);
    559559
    560                                         atomic_dec((int *)&nrdy);
     560                                        atomic_dec(&nrdy);
    561561
    562562                                        r->n--;
  • generic/src/proc/thread.c

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