Changeset 59e07c91 in mainline for generic


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
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • generic/include/proc/scheduler.h

    r13fe013 r59e07c91  
    3333#include <time/clock.h>         /* HZ */
    3434#include <typedefs.h>
     35#include <arch/atomic.h>
    3536#include <list.h>
    3637
     
    4445};
    4546
    46 extern volatile count_t nrdy;
     47extern atomic_t nrdy;
    4748extern void scheduler_init(void);
    4849
  • 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.