Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 226 → Rev 227

/SPARTAN/trunk/src/proc/scheduler.c
46,11 → 46,11
#include <print.h>
#include <mm/frame.h>
#include <mm/heap.h>
#include <debug.h>
 
volatile count_t nrdy;
 
volatile int nrdy;
 
 
/** Take actions before new thread runs
*
* Perform actions that need to be
90,6 → 90,8
runq_t *r;
int i, n;
 
ASSERT(CPU != NULL);
 
loop:
cpu_priority_high();
 
147,7 → 149,7
CPU->nrdy--;
spinlock_unlock(&CPU->lock);
 
atomic_dec(&nrdy);
atomic_dec((int *) &nrdy);
r->n--;
 
/*
229,6 → 231,8
{
volatile pri_t pri;
 
ASSERT(CPU != NULL);
 
pri = cpu_priority_high();
 
if (haltstate)
292,6 → 296,8
{
int priority;
 
ASSERT(CPU != NULL);
 
if (THREAD) {
switch (THREAD->state) {
case Running: