Changeset 623ba26c in mainline for src/proc/thread.c


Ignore:
Timestamp:
2005-09-01T14:42:09Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e83a9f7
Parents:
db3341e
Message:

Add couple of assertions CPU != NULL.

Change type of nrdy from int to count_t.

Rewrite halt() to avoid page fault when CPU == NULL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/proc/thread.c

    rdb3341e r623ba26c  
    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.