Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 474 → Rev 475

/SPARTAN/trunk/generic/include/proc/scheduler.h
32,6 → 32,7
#include <synch/spinlock.h>
#include <time/clock.h> /* HZ */
#include <typedefs.h>
#include <arch/atomic.h>
#include <list.h>
 
#define RQ_COUNT 16
43,7 → 44,7
int n; /**< Number of threads in rq_ready. */
};
 
extern volatile count_t nrdy;
extern atomic_t nrdy;
extern void scheduler_init(void);
 
extern void scheduler_fpu_lazy_request(void);
/SPARTAN/trunk/generic/src/proc/scheduler.c
48,7 → 48,7
#include <print.h>
#include <debug.h>
 
volatile count_t nrdy;
atomic_t nrdy;
 
 
/** Take actions before new thread runs
181,7 → 181,7
CPU->nrdy--;
spinlock_unlock(&CPU->lock);
 
atomic_dec((int *) &nrdy);
atomic_dec(&nrdy);
r->n--;
 
/*
557,7 → 557,7
cpu->nrdy--;
spinlock_unlock(&cpu->lock);
 
atomic_dec((int *)&nrdy);
atomic_dec(&nrdy);
 
r->n--;
list_remove(&t->rq_link);
/SPARTAN/trunk/generic/src/proc/thread.c
136,7 → 136,7
r->n++;
spinlock_unlock(&r->lock);
 
atomic_inc((int *) &nrdy);
atomic_inc(&nrdy);
avg = nrdy / config.cpu_active;
 
spinlock_lock(&cpu->lock);